Skip to contentSkip to conversation

Kirkwood NSA 310 does not boot with 3.8.3

DISCUSSION Lukas Zapletal 2 participants 4 messages Mar 16, 2013 – Mar 18, 2013

lore
Share & tools
lore
#0 lore raw

Hello all,

I have noticed that in the latest stable (3.8) kernels, support for NSA 310 (Marwell based NAS) has been added.

I tried to boot a kernel with Marwell DT and NSA310 enabled and it can't boot up with strange error:

<snip>
## Booting image at 00800000 ...

   Image Name:   Linux-3.8.3
   Created:      2013-03-16  20:35:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3646704 Bytes =  3.5 MB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000d0b).

Available machine support:

ID (hex) NAME
ffffffff Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader. </snip>

Particularly, I dont understand the ID code - it really does not look right. This is vanilla 3.8.3. Is there an ARM-dedicated git branch I should rather use for early support for NSA310?

Here is my full kernel config:
http://lzap.fedorapeople.org/patches/nsa310/config-3.8.3-vanilla-no-boot

I hope this is the right mailing list to ask, I apologize otherwise.

#1 lore raw
Quoted 19 lines · Lukas Zapletal

Hello all,

I have noticed that in the latest stable (3.8) kernels, support for NSA 310 (Marwell based NAS) has been added.

I tried to boot a kernel with Marwell DT and NSA310 enabled and it can't boot up with strange error:

<snip>
## Booting image at 00800000 ...

   Image Name:   Linux-3.8.3
   Created:      2013-03-16  20:35:06 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3646704 Bytes =  3.5 MB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Quoted 5 lines

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x00000d0b).

Your bootloader doesn't support devicetree.

Quoted 2 lines

Here is my full kernel config:
http://lzap.fedorapeople.org/patches/nsa310/config-3.8.3-vanilla-no-boot

You'll need to enable ARM_APPENDED_DTB, concatenate your dtb onto your zImage, then run mkimage on the result to get the uImage.

thx,

Jason.

#2 lore raw
Quoted 2 lines · Jason Cooper <jason <at> lakedaemon.net> writes:

You'll need to enable ARM_APPENDED_DTB, concatenate your dtb onto your zImage, then run mkimage on the result to get the uImage.

Jason, thanks for help. It worked great, just for completenes for googlers:

# grep "ARM_APPENDED_DTB|NSA" .config
CONFIG_ARM_APPENDED_DTB=y
CONFIG_MACH_NSA310_DT=y
# make zImage
# make dtbs
# cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-nsa310.dtb > /tmp/X
# mv /tmp/X arch/arm/boot/zImage
# make uImage

...

Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3684110 Bytes = 3597.76 kB = 3.51 MB
Load Address: 00008000
Entry Point:  00008000

Image arch/arm/boot/uImage is ready

# cp arch/arm/boot/uImage /boot/uImage-nsa310

UBOOT# ide reset; ext2load ide 0:1 0x800000 /uImage-nsa310; bootm 0x800000

Compared to my patched NSA310 3.6 kernel I don't see console anymore, I guess is is just an config option I miss. And LEDs are not working yet.

Thank you

#3 lore raw
Quoted 12 lines · Lukas Zapletal
Quoted 2 lines · Jason Cooper <jason <at> lakedaemon.net> writes:

You'll need to enable ARM_APPENDED_DTB, concatenate your dtb onto your zImage, then run mkimage on the result to get the uImage.

Jason, thanks for help. It worked great, just for completenes for googlers:

# grep "ARM_APPENDED_DTB|NSA" .config
CONFIG_ARM_APPENDED_DTB=y
CONFIG_MACH_NSA310_DT=y
# make zImage
Quoted 7 lines
# make dtbs
# cat arch/arm/boot/zImage arch/arm/boot/dts/kirkwood-nsa310.dtb > /tmp/X
# mv /tmp/X arch/arm/boot/zImage
# make uImage

Be careful using this in the future when we go multiplatform, it's not supported (which Load Address and Entry Point?). You'll need to use the mkimage command by hand then.

thx,

Jason.