Skip to contentSkip to conversation

2.6.10-rc1 initramfs busted

DISCUSSION Russell King 3 participants 5 messages Oct 23, 2004 – Oct 24, 2004

lore
Share & tools
lore
#0 lore raw

A build using O= does this:

HOSTCC usr/gen_init_cpio
GEN_INITRAMFS_LIST usr/initramfs_list
Using shipped usr/initramfs_list
CPIO usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

Usage:

        ./usr/gen_init_cpio <cpio_list>

<cpio_list> is a file containing newline separated entries that describe the files to be included in the initramfs archive:

The source tree contains this in usr:

-rw-r--r--  1 rmk rmk 1657 Oct 23 11:41 Makefile
-rw-r--r--  1 rmk rmk 8335 Oct 23 11:41 gen_init_cpio.c
-rw-r--r--  1 rmk rmk 1024 Aug  1  2003 initramfs_data.S
-rw-r--r--  1 rmk rmk  146 Oct 23 11:41 initramfs_list

and the build tree usr contains:

-rwxr-xr-x 1 rmk rmk 10834 Oct 23 13:29 gen_init_cpio
-rw-r--r-- 1 rmk rmk 0 Oct 23 13:29 initramfs_data.cpio

Running with V=1 shows:

make -f /home/rmk/build/linux-v2.6-local/scripts/Makefile.build obj=usr
echo Using shipped usr/initramfs_list
Using shipped usr/initramfs_list
./usr/gen_init_cpio usr/initramfs_list > usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

so it's referencing the wrong directory.

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core
#1 lore raw

Re: 2.6.10-rc1 initramfs busted [u]

Quoted 28 lines · Russell King

A build using O= does this:

HOSTCC usr/gen_init_cpio
GEN_INITRAMFS_LIST usr/initramfs_list
Using shipped usr/initramfs_list
CPIO usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

Usage:

        ./usr/gen_init_cpio <cpio_list>

<cpio_list> is a file containing newline separated entries that describe the files to be included in the initramfs archive:

The source tree contains this in usr:

(quoted diff) +0 -4
-rw-r--r--  1 rmk rmk 1657 Oct 23 11:41 Makefile
-rw-r--r--  1 rmk rmk 8335 Oct 23 11:41 gen_init_cpio.c
-rw-r--r--  1 rmk rmk 1024 Aug  1  2003 initramfs_data.S
-rw-r--r--  1 rmk rmk  146 Oct 23 11:41 initramfs_list

and the build tree usr contains:

(quoted diff) +0 -2
-rwxr-xr-x  1 rmk rmk 10834 Oct 23 13:29 gen_init_cpio
-rw-r--r--  1 rmk rmk     0 Oct 23 13:29 initramfs_data.cpio

Running with V=1 shows:

Quoted 8 lines

make -f /home/rmk/build/linux-v2.6-local/scripts/Makefile.build obj=usr
echo Using shipped usr/initramfs_list
Using shipped usr/initramfs_list
./usr/gen_init_cpio usr/initramfs_list > usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

so it's referencing the wrong directory.

Yep. Please see the

[PATCH 2.6.9-bk7] Select cpio_list or source directory for initramfs image updates

thread for latest patch to fix this and other issues. There are some other patches floating around that is slightly smaller, but I would appreciate testing and feedback.

Cheers,

Signature · 1 line
Martin Schlemmer
#2 lore raw

Re: 2.6.10-rc1 initramfs busted [u]

Quoted 40 lines · Martin Schlemmer [c]
Quoted 28 lines · Russell King

A build using O= does this:

HOSTCC usr/gen_init_cpio
GEN_INITRAMFS_LIST usr/initramfs_list
Using shipped usr/initramfs_list
CPIO usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

Usage:

        ./usr/gen_init_cpio <cpio_list>

<cpio_list> is a file containing newline separated entries that describe the files to be included in the initramfs archive:

The source tree contains this in usr:

(quoted diff) +0 -4
-rw-r--r--  1 rmk rmk 1657 Oct 23 11:41 Makefile
-rw-r--r--  1 rmk rmk 8335 Oct 23 11:41 gen_init_cpio.c
-rw-r--r--  1 rmk rmk 1024 Aug  1  2003 initramfs_data.S
-rw-r--r--  1 rmk rmk  146 Oct 23 11:41 initramfs_list

and the build tree usr contains:

(quoted diff) +0 -2
-rwxr-xr-x  1 rmk rmk 10834 Oct 23 13:29 gen_init_cpio
-rw-r--r--  1 rmk rmk     0 Oct 23 13:29 initramfs_data.cpio

Running with V=1 shows:

Quoted 8 lines

make -f /home/rmk/build/linux-v2.6-local/scripts/Makefile.build obj=usr
echo Using shipped usr/initramfs_list
Using shipped usr/initramfs_list
./usr/gen_init_cpio usr/initramfs_list > usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

so it's referencing the wrong directory.

Yep. Please see the

Quoted 5 lines

[PATCH 2.6.9-bk7] Select cpio_list or source directory for initramfs image updates

thread for latest patch to fix this and other issues. There are some other patches floating around that is slightly smaller, but I would appreciate testing and feedback.

There's this obvious error in the patch (missing 'i'):

+$(obj)/$(initramfs_list): FORCE
+ $(if $(nitramfs_list_state_uptodate),, \

though I am wondering why this looks rather complicated.

Signature · 4 lines
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 PCMCIA      - http://pcmcia.arm.linux.org.uk/
                 2.6 Serial core
#3 lore raw

Re: 2.6.10-rc1 initramfs busted [u]

Quoted 51 lines · Russell King
Quoted 40 lines · Martin Schlemmer [c]
Quoted 28 lines · Russell King

A build using O= does this:

HOSTCC usr/gen_init_cpio
GEN_INITRAMFS_LIST usr/initramfs_list
Using shipped usr/initramfs_list
CPIO usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

Usage:

        ./usr/gen_init_cpio <cpio_list>

<cpio_list> is a file containing newline separated entries that describe the files to be included in the initramfs archive:

The source tree contains this in usr:

(quoted diff) +0 -4
-rw-r--r--  1 rmk rmk 1657 Oct 23 11:41 Makefile
-rw-r--r--  1 rmk rmk 8335 Oct 23 11:41 gen_init_cpio.c
-rw-r--r--  1 rmk rmk 1024 Aug  1  2003 initramfs_data.S
-rw-r--r--  1 rmk rmk  146 Oct 23 11:41 initramfs_list

and the build tree usr contains:

(quoted diff) +0 -2
-rwxr-xr-x  1 rmk rmk 10834 Oct 23 13:29 gen_init_cpio
-rw-r--r--  1 rmk rmk     0 Oct 23 13:29 initramfs_data.cpio

Running with V=1 shows:

Quoted 8 lines

make -f /home/rmk/build/linux-v2.6-local/scripts/Makefile.build obj=usr
echo Using shipped usr/initramfs_list
Using shipped usr/initramfs_list
./usr/gen_init_cpio usr/initramfs_list > usr/initramfs_data.cpio
ERROR: unable to open 'usr/initramfs_list': No such file or directory

so it's referencing the wrong directory.

Yep. Please see the

Quoted 5 lines

[PATCH 2.6.9-bk7] Select cpio_list or source directory for initramfs image updates

thread for latest patch to fix this and other issues. There are some other patches floating around that is slightly smaller, but I would appreciate testing and feedback.

There's this obvious error in the patch (missing 'i'):

+$(obj)/$(initramfs_list): FORCE

Review

Quoted 1 line
(quoted diff) +1 -0
+	$(if $(nitramfs_list_state_uptodate),, \

Ah, thanks!. Should not matter though, as we do nothing with uptodate currently.

Quoted 2 lines

though I am wondering why this looks rather complicated.

I guess I can drop the uptodate $(if, as we only really need to check outofdate and missing, but I was not sure if anybody wanted to print or do something on uptodate ...

Or is it not the nested $(if's you are referring to?

thanks,

Signature · 1 line
Martin Schlemmer