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

Re: flash-kernel and dtbs



Am Sonntag, 26. November 2017, 16:25:59 schrieb Vagrant Cascadian:
> On 2017-11-26, Rainer Dorsch wrote:
> > On Sonntag, 26. November 2017 11:30:04 CET Vagrant Cascadian wrote:
> >> On 2017-11-26, Rainer Dorsch wrote:
> >> > I try to setup the correct dtb for a HummingBoard DualLite using
> >> > flash-kernel,
> >> 
> >> > but the kernel seems to load always the Cubox-i dtb:
> >> What u-boot do you have installed?
> > 
> > It seems there is no u-boot installed at all....
> 
> The version of u-boot you're running is probably whatever version was
> used to set up the initial system or installation image...

Hmm....I thought u-boot needs to get updated with every kernel update, but it 
seems u-boot is able to find the right files on the file system by name (?).

> >> Can you get to the u-boot console
> >> 
> >> (probably serial console), and run the following commands:
> >>   ver
> >>   run findfdt
> >>   printenv fdtfile
> > 
> > Yes, that should work, but I need to do that later this week.
> 
> Well, that's where the next troubleshooting steps would be...

u-boot seems to be definitely outdated.

Here is what I get here, findfdt is undefined. IIRC on the SDcard was initially 
Debian jessie which I upgraded to stretch.

CuBox-i U-Boot > ver

U-Boot 2014.10+dfsg1-5 (Apr 07 2015 - 22:16:43)
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
CuBox-i U-Boot > run findfdt
## Error: "findfdt" not defined
CuBox-i U-Boot > printenv fdtfile
## Error: "fdtfile" not defined
CuBox-i U-Boot > printenv
autoboot=echo Booting ${boot_file}; if test ${boot_file} = zImage; then bootz 
${loadaddr} ${ramdiskaddr}; else bootm ${loadaddr} ${ramdiskaddr}; fi;
autobootfdt=echo Booting ${boot_file}; if test ${boot_file} = zImage; then bootz 
${loadaddr} ${ramdiskaddr} ${fdt_addr}; else bootm ${loadaddr} ${ramdiskaddr} 
${fdt_addr}; fi;
autodetectfdt=if test ${cpu} = 6SOLO || test ${cpu} = 6DL; then setenv 
fdt_prefix imx6dl; else setenv fdt_prefix imx6q; fi; if test ${board} = mx6-
cubox-i; then setenv fdt_file ${fdt_prefix}-;
baudrate=115200
board=mx6-cubox-i
boot_fdt=try
boot_prefixes=/ /boot/
bootcmd=mmc dev ${mmcdev}; if mmc rescan; then setenv boot_targets mmc ; 
setenv devtype mmc ; setenv devnum ${mmcdev} ; setenv bootpart ${mmcpart} ; 
for prefix in ${boot_prefixes}; do setenv ;
bootdelay=3
bootenv=uEnv.txt
bootfile=auto
bootit=setenv boot_file ${bootfile}; if test ${boot_file} = zImage; then if test 
${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then run 
autobootfdt; else if test ${boot_fd;
bootscript=echo Running bootscript from mmc ...; source;
console=ttymxc0
cpu=6D
ethact=FEC
ethaddr=d0:63:b4:00:4d:d1
ethprime=FEC
fdt_addr=0x18000000
fdt_addr_r=0x18000000
fdt_high=0xffffffff
importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t 
${loadaddr} ${filesize};
initrd_high=0xffffffff
ip_dyn=yes
kernel_addr_r=0x10800000
loadaddr=0x10800000
loadbootenv=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${bootenv};
loadbootfile=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${file_prefix}${bootfile};
loadbootscript=load mmc ${mmcdev}:${mmcpart} ${loadaddr} 
${file_prefix}${script};
loadfdt=if test ${boottype} = mmc; then load mmc ${mmcdev}:${mmcpart} 
${fdt_addr} ${file_prefix}${fdt_file}; else ${get_cmd} ${fdt_addr} ${fdt_file}; fi;
loadramdisk=if test -n ${ramdisk}; then if load mmc ${mmcdev}:${mmcpart} 
${ramdiskaddr} ${file_prefix}${ramdisk}; then; else setenv ramdiskaddr -; fi; 
else    setenv ramdiskaddr -; fi;
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot};
mmcboot=echo Booting from mmc ...; run mmcargs; setenv boottype mmc; run 
bootit;
mmcdev=0
mmcpart=1
mmcroot=/dev/mmcblk0p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp 
nfsroot=${serverip}:${nfsroot},v3,tcp;
netboot=echo Booting from net ...; run netargs; setenv boottype net; if test 
${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if 
test ${bootfile} = auto; then setenv b;
preboot=usb start
ramdisk=uInitrd
ramdisk_addr_r=0x11800000
ramdiskaddr=0x11800000
script=boot.scr
splashpos=m,m
stderr=serial,vga
stdin=serial,usbkbd
stdout=serial,vga
update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else 
setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} 
${update_sd_firmware_filename}; then setexpr fw_sz;
update_sd_firmware_filename=u-boot.imx

Environment size: 4018/8188 bytes
CuBox-i U-Boot > 

Does this explain where the dtb file is coming from?

> 
> > The missing u-boot points also in this direction, I installed u-boot-imx
> > now, but that did not change anything...
> 
> The packages just ship pre-built binaries, they do not actually install
> anything.

hmm...when do they get installed?

Thanks,
Rainer


Reply to: