fix emmc settings errors
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
519d4cf7f0
commit
7a8d9bc106
|
@ -1,5 +1,10 @@
|
|||
# Recompile with:
|
||||
all:
|
||||
@echo make sdcard
|
||||
@echo or
|
||||
@echo make emmc
|
||||
|
||||
others:
|
||||
mkimage -C none -A arm -T script -d simple.cmd simple.scr
|
||||
mkimage -C none -A arm -T script -d sdcard.cmd sdcard.scr
|
||||
mkimage -C none -A arm -T script -d simplesdcard.cmd simplesdcard.scr
|
||||
|
@ -12,3 +17,8 @@ sdcard:
|
|||
mkimage -C none -A arm -T script -d sdcard.cmd sdcard.scr
|
||||
cp -a sdcard.* /boot/
|
||||
sync
|
||||
|
||||
emmc:
|
||||
mkimage -C none -A arm -T script -d emmc.cmd emmc.scr
|
||||
cp -a emmc.* /boot/
|
||||
sync
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
# super simple pinebook script
|
||||
|
||||
# Recompile with:
|
||||
# mkimage -C none -A arm -T script -d simple.cmd simple.scr
|
||||
|
||||
# then, at the u-boot prompt run:
|
||||
# ext4load mmc 1:1 ${scriptaddr} /root/pinebook/boot-script/simple.scr
|
||||
# source ${scriptaddr}
|
||||
|
||||
### BOOT SCRIPT START ####
|
||||
### BOOT SCRIPT START ####
|
||||
### BOOT SCRIPT START ####
|
||||
|
||||
ext4load mmc 0:1 ${ramdisk_addr_r} /boot/uInitrd-4.19.2-sunxi64
|
||||
ext4load mmc 0:1 ${kernel_addr_r} /boot/vmlinuz-4.19.2-sunxi64
|
||||
ext4load mmc 0:1 ${fdt_addr_r} /boot/dtb/allwinner/sun50i-a64-pinebook.dtb
|
||||
|
||||
setenv bootargs 'root=/dev/mmcblk2p1 console=ttyS0,115200 console=tty0'
|
||||
|
||||
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
|
||||
### BOOT SCRIPT END. ####
|
||||
### BOOT SCRIPT END. ####
|
||||
### BOOT SCRIPT END. ####
|
||||
|
||||
### Linux is now running. Nothing after this runs or 'exists' anymore.
|
||||
### Linux runs in the ARM architecture 'EL2' and 'EL1' level
|
||||
### ARM Power management is handled in the higher security level EL3
|
||||
### The only things left behind by u-boot are running in EL3
|
|
@ -15,7 +15,7 @@ ext4load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd-4.19.2-sunxi64
|
|||
ext4load mmc 1:1 ${kernel_addr_r} /boot/vmlinuz-4.19.2-sunxi64
|
||||
ext4load mmc 1:1 ${fdt_addr_r} /boot/dtb/allwinner/sun50i-a64-pinebook.dtb
|
||||
|
||||
setenv bootargs 'root=/dev/mmcblk0p1 console=ttyS0,115200 3'
|
||||
setenv bootargs 'root=/dev/mmcblk0p1 console=ttyS0,115200 console=tty0 3'
|
||||
|
||||
booti ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
||||
|
||||
|
|
Loading…
Reference in New Issue