You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Although initramfs-tools is available . kernel has no initramfs support #256
When having multiple USB devices attached to the Pi, and having root fs on one of them, it is required for reliable boot to have a cmdline.txt containing "root=LABEL=..." instead of "root=/dev/sdXY" since the device naming is not fixed. This requires an initramfs.
It would be nice to have initramfs support not only in userspace but in the kernel as well (I don't see any drawbacks).
I rebuilt the Pi's kernel (3.6.11) to have it support initramfs using the following in .config:
I'd like to see initramfs for a remote network recovery console. By my measurements I see around a 56kB increase in memory use. The numbers from adding free memory fluctuate quite a lot between boots, even with identical sdcard images. I've done 30x boots of each kernel in https://github.com/Torlus/qemu-rpi , averaged below using https://github.com/rustyrussell/stats . Even just the without-gz variant would be useful if memory is a concern.
no initrd: 35732.7kB
initrd gz: 35788.7kB -> +56kB
initrd no gz: 35766.3kB -> +33.6kB
Measured results. Output was printed in rc.local. I've got /proc/meminfo if there's something relevant there too.
Current head 3.6.11+ (30 May, 5d5301e598)
No initrd:
total used free shared buffers cached
Mem: 448768 35452-35956(35732.7+/-98) 412812-413316(413035+/-98) 0 6208-6216(6215.47+/-2) 16628-16820(16684.5+/-42)
Initrd with gz:
total used free shared buffers cached
Mem: 448752 35588-35968(35788.7+/-98) 412784-413164(412963+/-98) 0 6216 16648-16820(16699.6+/-50)
Initrd without gz:
total used free shared buffers cached
Mem: 448768 35564-35860(35766.3+/-80) 412908-413204(413002+/-80) 0 6216 16648-16820(16693.1+/-46)
Activity
popcornmix commentedon Mar 23, 2013
What is the free memory reported after boot with and without the change?
popcornmix commentedon Mar 23, 2013
I think the free memory in the first case is:
230376+16056+93132 = 339564
and with initramfs compiled in
230588+15824+93020 = 339432
So I think you've lost 132K. That seems a bit high for a feature <1% of people will make use of.
mkj commentedon Jun 3, 2013
I'd like to see initramfs for a remote network recovery console. By my measurements I see around a 56kB increase in memory use. The numbers from adding free memory fluctuate quite a lot between boots, even with identical sdcard images. I've done 30x boots of each kernel in https://github.com/Torlus/qemu-rpi , averaged below using https://github.com/rustyrussell/stats . Even just the without-gz variant would be useful if memory is a concern.
Looking at free memory:
Or looking at the "used column":
Measured results. Output was printed in rc.local. I've got /proc/meminfo if there's something relevant there too.
Current head 3.6.11+ (30 May, 5d5301e598) No initrd: total used free shared buffers cached Mem: 448768 35452-35956(35732.7+/-98) 412812-413316(413035+/-98) 0 6208-6216(6215.47+/-2) 16628-16820(16684.5+/-42) Initrd with gz: total used free shared buffers cached Mem: 448752 35588-35968(35788.7+/-98) 412784-413164(412963+/-98) 0 6216 16648-16820(16699.6+/-50) Initrd without gz: total used free shared buffers cached Mem: 448768 35564-35860(35766.3+/-80) 412908-413204(413002+/-80) 0 6216 16648-16820(16693.1+/-46)perf: Prevent false warning in perf_swevent_add
perf: Prevent false warning in perf_swevent_add
perf: Prevent false warning in perf_swevent_add
mfd: ab3100-core: Correct code sytle problems
popcornmix commentedon Dec 29, 2014
Closing issue since there has been no activity for more than 2 months. Reopen if needed.
2 remaining items
vxlan: do not destroy fdb if register_netdevice() is failed
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
netfilter: nf_tables: incorrect error path handling with NFT_MSG_NEWRULE
selftest/bpf: Add various selftests for program limits
selftests/bpf: Test bpf_mprog query API via libbpf and raw syscall
selftests/bpf: Test query on empty mprog and pass revision into attach
selftests/bpf: Add test for detachment on empty mprog entry
selftests/bpf: Add various more tcx test cases
selftests/bpf: Add additional mprog query test coverage
net: iptunnel: fix stale transport header during tunnel decapsulation
net: iptunnel: fix stale transport header during tunnel decapsulation
net: iptunnel: fix stale transport header during tunnel decapsulation
net: iptunnel: fix stale transport header during tunnel decapsulation
dm-raid: bound array_position before indexing failed_devices