[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: flash-kernel and dtb



On Sat, Jun 14, 2014 at 10:36:43PM +0200, Rainer Dorsch wrote:
> root@bokocube:~# cat /root/boot.cmd 
> 5# boot script for CuBox-i
> 
> setenv device mmc
> setenv partition ${mmcdev}:${mmcpart}
> setenv bootargs 'quiet'
> 
> image_locations='/boot/ /'
> kvers='3.15-rc8-armmp'
> 
> for pathprefix in ${image_locations}
> do
>   load ${device} ${partition} ${loadaddr} ${pathprefix}vmlinuz-${kvers} \
>   && load ${device} ${partition} ${fdt_addr} ${pathprefix}dtb-${kvers} \
>   && load ${device} ${partition} ${ramdiskaddr} 
> ${pathprefix}initrd.img-${kvers} \
>   && echo "Booting Debian ${kvers} from ${device} ${partition}..." \
>   && bootz ${loadaddr} ${ramdiskaddr}:${filesize} ${fdt_addr}
> done
> root@bokocube:~# 

You might want to remove "quiet" and add the console= and root= bootprompt
options in /etc/default/flash-kernel (or run dpkg-reconfigure flash-kernel):

  LINUX_KERNEL_CMDLINE="root=/dev/mmcblk0p1 console=ttymxc0,115200"

Then run flash-kernel and use the bootscript it generates... or manually edit
the bootargs in your boot script.


> CuBox-i U-Boot >  setenv mmcdev 0
> CuBox-i U-Boot > setenv mmcpart 2
> CuBox-i U-Boot > setenv ramdiskaddr 0x11800000
> CuBox-i U-Boot > setenv fdt_addr 0x18000000
> CuBox-i U-Boot > setenv scr_addr 0x19900000
> CuBox-i U-Boot > ext4load mmc 0:2 0x19900000 /boot/boot.scr
> 637 bytes read in 94 ms (5.9 KiB/s)
> CuBox-i U-Boot > source 0x19900000

The default in the u-boot in Debian is to use ${loadaddr} for the script
address. Is your initrd large enough that you might be overwriting part of it
with ${scr_addr}?

This is what my working setup looks like (should be all default u-boot env
values):

CuBox-i U-Boot > printenv loadaddr fdt_addr ramdiskaddr
loadaddr=0x10800000
fdt_addr=0x18000000
ramdiskaddr=0x11800000
CuBox-i U-Boot > boot
mmc0 is current device
** File not found /boot.scr **
** File not found uEnv.txt **
** File not found /zImage **
** File not found /uImage **
674 bytes read in 110 ms (5.9 KiB/s)
Running bootscript from mmc ...
## Executing script at 10800000
2857312 bytes read in 308 ms (8.8 MiB/s)
29104 bytes read in 107 ms (265.6 KiB/s)
10930060 bytes read in 801 ms (13 MiB/s)
Booting Debian 3.15-rc8-armmp from mmc 0:1...
Kernel image @ 0x10800000 [ 0x000000 - 0x2b9960 ]
## Flattened Device Tree blob at 18000000
   Booting using the fdt blob at 0x18000000
   Using Device Tree in place at 18000000, end 1800a1af

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
...

I don't see it loading the initrd, though it's definitely using it...


live well,
  vagrant

Attachment: signature.asc
Description: Digital signature


Reply to: