[Letux-kernel] u-boot for e60k02

Andreas Kemnade andreas at kemnade.info
Sun Oct 6 09:01:58 CEST 2019


On Thu, 3 Oct 2019 13:19:22 +0200
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:

> > Am 03.10.2019 um 09:45 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> > 
> > Forgot to share the repo link: http://git.goldelico.com/?p=letux-uboot.git;a=shortlog;h=refs/heads/e60k02
> >   
> >> Am 03.10.2019 um 09:38 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> >> 
> >> Hi,
> >> I have cleaned up a lot of compiler warnings so that it is easier
> >> to find real bugs...
> >> 
> >> There remain a handful of undefined/undeclared functions which
> >> do not seem to harm the build process.
> >> 
> >> What I have not checked is if the u-boot (compiled for kobo/clara
> >> as mx6sll_ntx_lpddr2_512m) still works as before.  
> 
> Seems to basically work (even if initialized for the wrong SoC). 
> 
> U-Boot 2016.03-g645fc0a (Oct 03 2019 - 11:44:14 +0200)
> 
> CPU:   Freescale i.MX6SL rev1.3 996 MHz (running at 792 MHz)
> 
> ^^^ MX6SL identified
> 
> CPU:   Commercial temperature grade (0C to 95C) at 33C
> Reset cause: POR
> Board: MX6SLL LPDDR2 NTX
> 
> ^^^ thinks it is the MX6SLL board
> 
> I2C:   ready
> DRAM:  512 MiB
> __get_sd_number(),cfg23=1,cfg24=0 
> force_idle_bus: sda=0 scl=0 sda.gp=0x4d scl.gp=0x4c
> force_idle_bus: sda=0 scl=0 sda.gp=0x4f scl.gp=0x4e
> force_idle_bus: sda=0 scl=0 sda.gp=0x56 scl.gp=0x55
> force_idle_bus: failed to clear bus, sda=0 scl=1
> MMC:   board_mmc_init() : isd=1 
> board_mmc_init() : wifi=2 
> FSL_SDHC: 0, FSL_SDHC: 1
> *** Warning - MMC init failed, using default environment
> 
> ^^^ I have seen in code that there is something commented out
> ^^^ for SDHC/mmc initialization
> 
> In:    serial
> Out:   serial
> Err:   serial
> ntx_hw_early_init() 0
> ram p=80000000,size=536870912
> mmc read 0x9ffffe00 0x3ff 0x1
> binary magic @ sector no. 1024 not found !
> "hwcfg" not exist !!
> warning : ntxhwcfg not exist !
> ntx_hw_late_init()
> mmc read 0x9ffffe00 0x3ff 0x1
> binary magic @ sector no. 1024 not found !
> "hwcfg" not exist !!
> mmc read 0x9ffffe00 0x1 0x1
> NTXSN not avalible !
> _led_R(0) : cannot work without ntx hwconfig !
> ntx_gpio_get_value(404) : error parameter ! null ptr !
> ** Block device MMC 0 not supported
> check_and_clean: reg 0, flag_set 0
> Fastboot: Normal
> Net:   CPU Net Initialization Failed
> No ethernet found.
> Hit any key to stop autoboot:  0 
> mmc read 0x80800000 0x7ff 0x1
> no kernel image signature !
> mmc read 0x80800000 0x800 0x2400
> Booting from mmc ...
> mmc read 0x83000000 0x505 0x1
> no dtb signature !
> WARN: Cannot load the DT
> eBR-1A # 
> eBR-1A # mmc info
> eBR-1A # 
> 
> >> 
> >> And I have not tried the tolino/shine3 (mx6sl_ntx_lpddr2_512m) binary
> >> either...  
> 
> Ok, I was courageous and tried the version with what we believe is the correct MX6SL pinmux.
> No yellow smoke. The only hot (warm) spot by looking through the thermal camera is the SoC (27°C).
> 
> Boot log:
> 
> U-Boot 2016.03-g645fc0a (Oct 03 2019 - 12:37:57 +0200)
> 
> CPU:   Freescale i.MX6SL rev1.3 996 MHz (running at 792 MHz)
> CPU:   Commercial temperature grade (0C to 95C) at 33C
> Reset cause: POR
> Board: MX6SLL LPDDR2 NTX
> 
> ^^^ seems to be a constant string and not depend on real SoC
> 
> I2C:   ready
> DRAM:  512 MiB
> __get_sd_number(),cfg23=1,cfg24=0 
> force_idle_bus: sda=0 scl=0 sda.gp=0x4d scl.gp=0x4c
> force_idle_bus: sda=0 scl=0 sda.gp=0x4f scl.gp=0x4e
> force_idle_bus: sda=1 scl=0 sda.gp=0x56 scl.gp=0x55
> MMC:   board_mmc_init() : isd=1 
> board_mmc_init() : wifi=2 
> FSL_SDHC: 0, FSL_SDHC: 1
> *** Warning - bad CRC, using default environment
> 
> ^^^ same failure as before
> 
well, after some thinking you might simply use the env from kobo
firstpart here (maybe with some partitions changed) and keep the other
stuff from tolino firstpart. That should prevent uboot from doing
default actions. And you do not have the wrong kobo kernel + dtb.

Regards,
Andreas


More information about the Letux-kernel mailing list