Skip to contentSkip to conversation

upstream kernel 3.8.5: tegra_defconfig not working on Seco QSeven QuadMo747-X/T20

DISCUSSION Mikhail Goryunov 3 participants 6 messages Apr 11, 2013 – Apr 18, 2013 4 messages not in the archive Tegra architecture support

lore
Share & tools
lore
#0 lore raw

When building the kernel with the option tegra_defconfig loading occurs in the following way:
Loading file "/boot/boot.scr" from usb device 0:1 (usbda1)
319 bytes read
## Executing script at 00408000
USB boot...
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
3733096 bytes read
## Booting kernel from Legacy Image at 04080000 ...

   Image Name:   Linux-3.8.5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3733032 Bytes = 3.6 MiB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

and system freezes

#2 lore raw
In reply to a message not in the archive

Am Donnerstag, den 11.04.2013, 16:15 +0400 schrieb Mikhail Goryunov:

Quoted 17 lines

When building the kernel with the option tegra_defconfig loading occurs in the following way:
Loading file "/boot/boot.scr" from usb device 0:1 (usbda1)
319 bytes read
## Executing script at 00408000
USB boot...
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
3733096 bytes read
## Booting kernel from Legacy Image at 04080000 ...

   Image Name:   Linux-3.8.5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3733032 Bytes = 3.6 MiB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Quoted 4 lines

Starting kernel ...

and system freezes

Do you have a working devicetree for your module? Upstream kernel won't work without this information. You may also want to enable the earlyconsole support in kernel to see if it comes up at all.

Also please show what's in your boot script, otherwise it's guesswork from our side.

Regards,
Lucas

#3 lore raw
Quoted 18 lines · Lucas Stach

Am Donnerstag, den 11.04.2013, 16:15 +0400 schrieb Mikhail Goryunov:

Quoted 17 lines

When building the kernel with the option tegra_defconfig loading occurs in the following way:
Loading file "/boot/boot.scr" from usb device 0:1 (usbda1)
319 bytes read
## Executing script at 00408000
USB boot...
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
3733096 bytes read
## Booting kernel from Legacy Image at 04080000 ...

   Image Name:   Linux-3.8.5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3733032 Bytes = 3.6 MiB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Quoted 7 lines
Quoted 4 lines

Starting kernel ...

and system freezes

... You may also want to enable the
earlyconsole support in kernel to see if it comes up at all.

i.e. enable the following Kconfig options:

CONFIG_DEBUG_LL=y
CONFIG_EARLY_PRINTK=y
CONFIG_TEGRA_DEBUG_UART_XXX=y

(where XXX above is the serial port you're using; look in menuconfig)

and add "earlyprintk" to the kernel command-line. That should hopefully show the cause of the crash/hang.

BTW, what is your kernel command-line?

#5 lore raw
In reply to a message not in the archive

These options are enabled.
The argument "earlyprintk" gave no result.
My command-line for kernel:
'root=/dev/sda2 rw rootwait console=ttyS0,115200n8 earlyprintk mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M nohdparm noinitrd init=/sbin/init rootwait loglevel=8 video=tegrafb'

11.04.2013, 19:26, "Stephen Warren" <[email protected]>:

Quoted 38 lines · Lucas Stach
Quoted 19 lines

Am Donnerstag, den 11.04.2013, 16:15 +0400 schrieb Mikhail Goryunov:

Quoted 17 lines

When building the kernel with the option tegra_defconfig loading occurs in the following way:
Loading file "/boot/boot.scr" from the usb device 0:1 (usbda1)
319 bytes read
## Executing the script at 00408000
USB boot...
Loading file "/boot/uImage" from the usb device 0:1 (usbda1)
3733096 bytes read
## Booting kernel from Legacy Image at 04080000 ...
Image Name: Linux-3.8.5
Image Type: PowerPC Linux Kernel Image (uncompressed)
Data Size: 3733032 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Quoted 5 lines
Quoted 3 lines

Starting kernel ...

and system freezes

... You may also want to enable the
earlyconsole support in the kernel to see if it comes up at all.

ie enable the following Kconfig options:

CONFIG_DEBUG_LL=y
CONFIG_EARLY_PRINTK=y
CONFIG_TEGRA_DEBUG_UART_XXX=y

(where XXX above is the serial port you're using; look in menuconfig)

and add "earlyprintk" to the kernel command-line. That should hopefully show the cause of the crash/hang.

BTW, what is your kernel command-line?

#7 lore raw
In reply to a message not in the archive
Quoted 4 lines · Mikhail Goryunov

11.04.2013, 19:26, "Stephen Warren" <[email protected]>:

Quoted 3 lines · Lucas Stach
Quoted 2 lines

Am Donnerstag, den 11.04.2013, 16:15 +0400 schrieb Mikhail Goryunov:

Quoted 1 line

When building the kernel with the option tegra_defconfig loading occurs in the following way:

...

Quoted 17 lines
Quoted 17 lines
Quoted 5 lines
Quoted 3 lines

Starting kernel ...

and system freezes

... You may also want to enable the
earlyconsole support in the kernel to see if it comes up at all.

ie enable the following Kconfig options:

CONFIG_DEBUG_LL=y
CONFIG_EARLY_PRINTK=y
CONFIG_TEGRA_DEBUG_UART_XXX=y

(where XXX above is the serial port you're using; look in menuconfig)

and add "earlyprintk" to the kernel command-line. That should hopefully show the cause of the crash/hang.

Quoted 6 lines
Quoted 1 line

BTW, what is your kernel command-line?

These options are enabled.
The argument "earlyprintk" gave no result.
My command-line for kernel:
'root=/dev/sda2 rw rootwait console=ttyS0,115200n8 earlyprintk mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M nohdparm noinitrd init=/sbin/init rootwait loglevel=8 video=tegrafb'

Many of those options are only useful for downstream kernels. Some may be harmful for upstream kernels.

I suggest you try the following simplified command-line:

root=/dev/sda2 rw rootwait console=ttyS0,115200n8 earlyprintk init=/sbin/init loglevel=8

Just to confirm:

a) You're using a pure upstream 3.8 kernel with no modifications. If not, what modifications have been made?

b) You have written a device tree for your board, and are passing that to the kernel.

c) When flashing the bootlaoder, you set the ODMDATA to correctly specify the RAM size and serial console UART. Perhaps you can get away with specifying the wrong console UART if you pick an explicit CONFIG_TEGRA_DEBUG_UART_XXX, rather than the AUTO_ODMDATA option.

d) You're using a bootloader that understands device tree, and you're passing both the zImage and DT address to "bootm" or "bootz", and the bootloader is filling in the correct parameters in the /memory and /chosen (for command-line) nodes.

BTW, I just noticed the following in your previous message:

Quoted 1 line

Image Type: PowerPC Linux Kernel Image (uncompressed)

That's certainly wrong...

#9 lore raw
In reply to a message not in the archive

12.04.2013, 19:32, "Stephen Warren" <[email protected]>:

Quoted 7 lines · Mikhail Goryunov
Quoted 5 lines

11.04.2013, 19:26, "Stephen Warren" <[email protected]>:

Quoted 3 lines · Lucas Stach
Quoted 2 lines

Am Donnerstag, den 11.04.2013, 16:15 +0400 schrieb Mikhail Goryunov:

Quoted 1 line

When building the kernel with the option tegra_defconfig loading occurs in the following way:

Quoted 8 lines

...

BTW, I just noticed the following in your previous message:

Quoted 1 line

Image Type: PowerPC Linux Kernel Image (uncompressed)

That's certainly wrong...

A very strange comment. I'm such a sent me letters not found.