uboot hangs after "Starting kernel" message

Discussion about U-Boot and the kernel.

uboot hangs after "Starting kernel" message

Postby flappix » Thu Mar 24, 2016 1:11 am

Hi @ all,
I compiled a kernel for my Toshiba AC100 and want to boot it via uboot. Problem: After displaying the message "Starting Kernel" nothing happens. The flag CONFIG_DEBUG_LL was set but there is still no output after this message.

I have another precompiled kernel which comes with its own dtb file and this one boots (same bootargs as the non-booting kernel). Observation: If I change the dtb file for this kernel it shows the same behaviour as the non-booting kernel, just displaying the "Starting kernel" line.

So I guess my problem is related to the dtb file I use for my kernel. Are there any methods to check if the dbt file is right for my board? What else could I do to get some information what the problem is?

I use the dbt file arch/arm/boot/dtbs/tegra20-paz00.dtb. I also tried to use the dtb file from the working precompiled kernel, but that's not working.

Would be very happy if anyone could help :)
flappix
 
Posts: 11
Joined: Fri May 18, 2012 9:45 am

Re: uboot hangs after "Starting kernel" message

Postby Abzie » Thu Mar 24, 2016 12:23 pm

Did you set load address at kernel compilation?
$this->bbcode_second_pass_code('', 'LOADADDR=0xblah make -j X')
Abzie
 
Posts: 29
Joined: Tue Mar 15, 2016 6:05 pm

Re: uboot hangs after "Starting kernel" message

Postby flappix » Thu Mar 24, 2016 2:42 pm

Thx for your reply.
No I didn't, never heard about that.
How can I figure out what address I have to use?

In my uboot.cmd I wrote
$this->bbcode_second_pass_code('', 'ext2load mmc 0:7 0x1000000 /boot/zImage;')
This I found in several tutorials for my board.
So would 0x1000000 the right address or is this something different?
flappix
 
Posts: 11
Joined: Fri May 18, 2012 9:45 am

Re: uboot hangs after "Starting kernel" message

Postby Abzie » Thu Mar 24, 2016 6:42 pm

ext2load mmc 0:7 0x1000000 /boot/zImage is where ext2load will place zImage in at address 0x1000000 in the ram.

Try using "bootm $load_addr" as your boot command first and keep the existing uboot.cmd intact.
Abzie
 
Posts: 29
Joined: Tue Mar 15, 2016 6:05 pm

Re: uboot hangs after "Starting kernel" message

Postby flappix » Thu Mar 24, 2016 7:46 pm

Could you maybe describe a little bit more detailed what to do in which order?
If I enter the follwing to the boot console
$this->bbcode_second_pass_code('', 'bootm $load_addr')
I get
$this->bbcode_second_pass_code('', '## Booting kernel from Legacy Image at 1000000
Image Name: ubootscript
Image Type: ARM Linux Script (uncompressed)
Data Size: 991 Bytes = 991 Bytes
Load Adress: 00000000
Entry Point: 00000000
Contens:
Image 0: 983 Bytes = 983 Bytes
Verify Checksum ... OK
Wrong Image Type for bootm command
ERROR: can't get kernel image!')
flappix
 
Posts: 11
Joined: Fri May 18, 2012 9:45 am

Re: uboot hangs after "Starting kernel" message

Postby Abzie » Thu Mar 24, 2016 11:32 pm

Load the kernel with ext2load, then run bootm $load_addr.

This boots an image from ram with the load address given by the image rather than manually passed as an argument, that you loaded via ext2load.
Abzie
 
Posts: 29
Joined: Tue Mar 15, 2016 6:05 pm

Re: uboot hangs after "Starting kernel" message

Postby flappix » Fri Mar 25, 2016 12:33 am

Hi,
I've got the kernel booting by changing the kernel config from
CONFIG_TEGRA_DEBUG_UART_AUTO_ODMDATA
to
CONFIG_TEGRA_DEBUG_UARTA

After this the kernel is booting fine.

Thx for your help
flappix
 
Posts: 11
Joined: Fri May 18, 2012 9:45 am


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 4 guests