uInitrd

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

uInitrd

Postby absintos » Tue Jul 15, 2014 9:47 pm

Hi,

trying to setup achlinux on a zyxel nsa320. Because i want to have the rootfs in a raid1 array, i need a initramfs (mkinitcpio -g /boot/uInitrd, after mdadm --detail --scan >> /etc/mdadm.conf) - used default installation instructions for nsa320 (usb script for partitions, rootfs copy to new partition)

using stock uboot:
** MARVELL BOARD: RD-88F6281A LE
U-Boot 1.1.4 (Nov 9 2012 - 14:55:24) Marvell version: 3.4.19
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00
Soc: 88F6281 A1 (DDR2)

Unfortunately, after trying to boot it, via:

setenv bootargs 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/md1 rw rootwait loglevel=8'
mw 0x800000 0 1; ide reset; ext2load ide 0:1 0x800000 /uImage; ext2load ide 0:1 0x01100000 /uInitrd; bootm 0x00800000 0x01100000

i get:

## Booting image at 00800000 ...
Image Name: Linux-3.1.10-33-ARCH
Created: 2014-04-27 8:45:16 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3124204 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
Bad Magic Number▒

after which the box immediately resets..

anyone have any clue on how i am supposed to load the uInitrd via the stock uboot ? Or maybe the initrd is made wrong ?
absintos
 
Posts: 8
Joined: Tue Jun 24, 2014 6:35 pm

Re: uInitrd

Postby WarheadsSE » Tue Jul 15, 2014 10:02 pm

That will not generate an uInitrd, only an initrd. You're missing the step to make it into a uInitrd.
$this->bbcode_second_pass_code('', '
# pacman -S uboot-tools
# mkinitcpio -g /boot/initrd, after mdadm --detail --scan >> /etc/mdadm.conf
# mkimage -A arm -O linux -T ramdisk -a 0x01100000 -n "Arch Linux ARM initrd" -d /boot/initrd /boot/uInitrd
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 4 guests