Running U-boot master

Moderators: odroid, mdrjr

Running U-boot master

Unread postby neagix » Sun Oct 16, 2016 8:14 pm

I am trying to use U-boot, current master version.

Booting an official 4.x kernel
It is possible to boot an official 3.x kernel with master U-boot and this boot.txt:
Code: Select all
setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=/dev/mmcblk0p2 rootwait ro  mem=2047M"
fatload mmc 0:1 0x40007FC0 zImage
fatload mmc 0:1 0x42000000 uInitrd
bootz 0x40007FC0 0x42000000


Notice the use of 'bootz' instead of U-boot 2010's 'bootm'. That does the trick.
This was a crucial step as one wants to upgrade first U-boot, then the kernel.

Convert the boot.txt to boot.scr with tools/mkimage:
Code: Select all
mkimage -A arm -T script -C none -n $HOSTNAME -d boot.txt boot.scr


Debugging kernel problems
If you are trying to boot a custom kernel, it is suggested to use the following CONFIG_ options:
Code: Select all
DEBUG_LL=y
EARLY_PRINTK=y
DEBUG_S3C_UART1=y


This will output all early messages on the correct serial output on an U2.

Solved issues
* boot.scr not being loaded

boot.scr is being read correctly, I was thinking the CRC message was about boot.scr but it's not. The problem was that u-boot version 2015.1 does not load boot.scr with its default environment, while current master does.

Look up CONFIG_EXTRA_ENV_SETTINGS in U-boot's README to understand how this works.

Remaining issues

Network not recognized:
Code: Select all
U-Boot 2016.11-rc1-00318-gb9aea9f (Oct 16 2016 - 12:28:42 +0200)

CPU:   Exynos4412 @ 1 GHz
Model: Odroid based on Exynos4412
Board: Odroid based on Exynos4412
Type:  u3
DRAM:  2 GiB
LDO20@VDDQ_EMMC_1.8V: set 1800000 uV; enabling
LDO22@VDDQ_EMMC_2.8V: set 2800000 uV; enabling
LDO21@TFLASH_2.8V: set 2800000 uV; enabling
MMC:   SAMSUNG SDHCI: 0, EXYNOS DWMMC: 1
CACHE: Misaligned operation at range [bae42980, bae42988]
*** Warning - bad CRC, using default environment

Net:   No ethernet found.
Hit any key to stop autoboot:  0
## Error: "autoboot" not defined
Odroid # usb start
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found


Did somebody experience this as well? Is this a known issue?
There is a USB hard-drive plugged in. Could that be confusing U-boot?
Last edited by neagix on Mon Oct 17, 2016 6:47 am, edited 5 times in total.
neagix
 
Posts: 264
Joined: Sun Apr 14, 2013 2:54 am
languages_spoken: english
ODROIDs: U2

Re: Running U-boot master

Unread postby LiquidAcid » Sun Oct 16, 2016 11:04 pm

I guess you still haven't understood the difference between the u-boot environment and any script files you additionally use.
LiquidAcid
 
Posts: 1056
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

Re: Running U-boot master

Unread postby neagix » Sun Oct 16, 2016 11:40 pm

LiquidAcid wrote:I guess you still haven't understood the difference between the u-boot environment and any script files you additionally use.

Please refrain from these passive-aggressive posts, either be helpful or do not post at all.

Edit: on the specific issue, in this thread and previous thread it would have been sufficient to mention that boot.scr is loaded through the default environment scripting (something which I discovered today when opening the specific u-boot header file) to make me aware of the fact, in an informational way. I was assuming that the CRC error was about boot.scr (once again no clue about the sector-writing environment feature of u-boot).
neagix
 
Posts: 264
Joined: Sun Apr 14, 2013 2:54 am
languages_spoken: english
ODROIDs: U2

Re: Running U-boot master

Unread postby LiquidAcid » Mon Oct 17, 2016 1:44 am

neagix wrote:Please refrain from these passive-aggressive posts, either be helpful or do not post at all.

OK. Guess I can't help you, if you choose to stay ignorant.

Goodbye. *plonk*
LiquidAcid
 
Posts: 1056
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2

Re: Running U-boot master

Unread postby neagix » Tue Oct 18, 2016 5:29 am

The SMSC95xx driver is being compiled in U-boot, so it must be related to some other USB feature not working correctly.

Unfortunately the .config management of U-boot is not serious, half of the options will not work when enabled...

Perhaps network feature works only with hardkernel's branch?
neagix
 
Posts: 264
Joined: Sun Apr 14, 2013 2:54 am
languages_spoken: english
ODROIDs: U2


Return to Projects

Who is online

Users browsing this forum: No registered users and 1 guest