All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Uboot and initramfs
@ 2012-07-15 16:19 Wojtek
  2012-07-23 12:48 ` Frank Agius
  0 siblings, 1 reply; 2+ messages in thread
From: Wojtek @ 2012-07-15 16:19 UTC (permalink / raw)
  To: u-boot

Hi,

I'm struggling with the topic for long two days and I want to ask for help.

I have a DNS-320 system with u-boot. I compiled kernel and it works 
well, but I need initramfs. I prepared contents on this system (ARM) (no 
need to cross-compile), then did:

find . -print0 | cpio --null -ov --format=newc | gzip -9 > initramfs
mkimage -A arm -O linux -T ramdisk -C gzip -n "Some name" -d initramfs 
initramfs.kwb

flash_eraseall /dev/mtd2
nandwrite -p /dev/mtd2 ./initramfs.kwb

reboot

Marvell_DNS320>> nand read.e 0xa00000 0x100000 0x200000

NAND read: device 0 offset 0x100000, size 0x200000 load addr ....  =a00000

  2097152 bytes read: OK
Marvell_DNS320>> nand read.e 0xf00000 0x600000 0x500000

NAND read: device 0 offset 0x600000, size 0x500000 load addr ....  =f00000

  5242880 bytes read: OK
Marvell_DNS320>> bootm 0xa00000 0xf00000
## Booting image at 00a00000 ...
    Image Name:   Linux-3.4.4
    Created:      2012-07-08  11:45:53 UTC
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    2039456 Bytes =  1.9 MB
    Load Address: 00008000
    Entry Point:  00008000
    Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 0f00000 ...
    Image Name:   Initramfs 3.4.4
    Created:      2012-07-15  16:08:35 UTC
    Image Type:   ARM Linux RAMDisk Image (gzip compressed)
    Data Size:    4816677 Bytes =  4.6 MB
    Load Address: 00000000
    Entry Point:  00000000
    Verifying Checksum ... OK

Starting kernel ...

And here it hangs.


If I skip passing initramfs system boots properly.
What is wrong?

Cheers,
Wojtek

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] Uboot and initramfs
  2012-07-15 16:19 [U-Boot] Uboot and initramfs Wojtek
@ 2012-07-23 12:48 ` Frank Agius
  0 siblings, 0 replies; 2+ messages in thread
From: Frank Agius @ 2012-07-23 12:48 UTC (permalink / raw)
  To: u-boot

On 7/15/2012 12:19 PM, Wojtek wrote:
> Hi,
>
> I'm struggling with the topic for long two days and I want to ask for help.
>
> I have a DNS-320 system with u-boot. I compiled kernel and it works
> well, but I need initramfs. I prepared contents on this system (ARM) (no
> need to cross-compile), then did:
>
> find . -print0 | cpio --null -ov --format=newc | gzip -9 > initramfs
> mkimage -A arm -O linux -T ramdisk -C gzip -n "Some name" -d initramfs
> initramfs.kwb
>
> flash_eraseall /dev/mtd2
> nandwrite -p /dev/mtd2 ./initramfs.kwb
>
> reboot
>
> Marvell_DNS320>> nand read.e 0xa00000 0x100000 0x200000
>
> NAND read: device 0 offset 0x100000, size 0x200000 load addr ....  =a00000
>
>   2097152 bytes read: OK
> Marvell_DNS320>> nand read.e 0xf00000 0x600000 0x500000
>
> NAND read: device 0 offset 0x600000, size 0x500000 load addr ....  =f00000
>
>   5242880 bytes read: OK
> Marvell_DNS320>> bootm 0xa00000 0xf00000
> ## Booting image at 00a00000 ...
>     Image Name:   Linux-3.4.4
>     Created:      2012-07-08  11:45:53 UTC
>     Image Type:   ARM Linux Kernel Image (uncompressed)
>     Data Size:    2039456 Bytes =  1.9 MB
>     Load Address: 00008000
>     Entry Point:  00008000
>     Verifying Checksum ... OK
> OK
> ## Loading Ramdisk Image at 0f00000 ...
>     Image Name:   Initramfs 3.4.4
>     Created:      2012-07-15  16:08:35 UTC
>     Image Type:   ARM Linux RAMDisk Image (gzip compressed)
>     Data Size:    4816677 Bytes =  4.6 MB
>     Load Address: 00000000
>     Entry Point:  00000000
>     Verifying Checksum ... OK
>
> Starting kernel ...
>
> And here it hangs.
>
>
> If I skip passing initramfs system boots properly.
> What is wrong?
>
> Cheers,
> Wojtek

In your mkimage command, try changing "-C gzip" to "-C none".

frank

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-23 12:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-15 16:19 [U-Boot] Uboot and initramfs Wojtek
2012-07-23 12:48 ` Frank Agius

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.