Am Mittwoch, 23. Juni 2010 21:25:05 schrieb Andrew:
> 23.06.2010 22:18, KP Kirchdoerfer пишет:
> > Am Mittwoch, 23. Juni 2010 20:59:37 schrieb Andrew:
> >> 23.06.2010 21:41, KP Kirchdoerfer пишет:
> >>> Am Sonntag, 13. Juni 2010 00:19:42 schrieb Andrew:
> >>>> After rebuild all looks OK. Image is working.
> >>>>
> >>>> It'll be enough good to leave initramfs 'as is', that can consume up
> >>>> to half of physical memory, or we'll use switch_root  (which is
> >>>> currently buggy - it doesn't umount /proc&   /sys from old root fs; so
> >>>> even I don't shure that it actually cleans filesystem after switching)
> >>>> or pivot_root + some clean-up for creating  root tmpfs with limited
> >>>> size? Is it actually needed?
> >>>>
> >>>> In few days, when I'll get free time, I'll try to enable devtmpfs
> >>>> instead of manual creation of device files, and look what it actually
> >>>> does, and how successfully it'll replace device creation scripts. It
> >>>> isn't critical milestone for beta release, but IMHO will be gladly
> >>>> seen in stable release, enhanced by busybox's mdev and some other very
> >>>> useful features.
> >>>
> >>> Andrew;
> >>>
> >>> I've made a fresh rebuild from cvs and installed on my router.
> >>>
> >>> To package initd.lrp I had to remove the line
> >>>                          #include<files>
> >>> from buildtool.cfg cause thatis missing.
> >>> Following that I've been avble to build an initrd.lrp
> >>>
> >>> Starting the new version results in the error:
> >>>
> >>> LINUXRC: Bering - Initrd - 4.0.0 Rev 8 uClibc 0.9.30.3
> >>> modprobe: module 'isofs' not found
> >>> modprobe: module 'vfat' not found
> >>>
> >>> What am I missing?
> >>> kp
> >>
> >> Strange. 'files' is generated by buildtool.mk from 'mod', which is also
> >> generated by script from input filelist and kernel's modules.dep
> >> Can you give me log of initrd building (actually - part of execution
> >> buildtool.mk 'build' part)?
> >
> > There are a some errors which may explain the pb:
> >
> > make: Gehe in Verzeichnis '/opt/buildtool26/source/initrd'
> > touch ./.configured
> > sort: invalid option -- V
> > „sort --help“ gibt weitere Informationen.
> > sort: invalid option -- V
> > „sort --help“ gibt weitere Informationen.
> > mkdir -p /opt/buildtool26/build/config
> > mkdir -p /opt/buildtool26/build/config/var/lib/lrpkg
> > mkdir -p /opt/buildtool26/build/config/boot/etc
> > BT_STAGING_DIR=/opt/buildtool26/staging BT_KERNEL_RELEASE= \
> >                 sh /opt/buildtool26/tools/getdep.sh "ata_.*" ahci ehci-hcd 
> > uhci-hcd
> > \ ohci-hcd usb-storage sd_mod sr_mod isofs vfat floppy>mod
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > cat: /opt/buildtool26/staging/lib/modules//modules.dep: No such file or
> > directory
> > #cat mod|sed 's/[a-z]*\/[a-z_/-]*\///g; s/\.ko//g;
> > s/ /\n/g'>/opt/buildtool26/build/config/boot/etc/modules
> > echo -e "isofs\nvfat">/opt/buildtool26/build/config/boot/etc/modules
> > rm -f files
> > (BT_KERNEL_RELEASE=; for i in `cat mod`; do echo -e "<File>\n\tSource\t=
> > lib/modules/$BT_KERNEL_RELEASE/$i\n\t\
> >     Filename\t= lib/modules/$(echo $i|sed 's/[a-z]*\/[a-z_/-]*\///g')\n\t\
> >     Type\t= binary\n\tType\t= module\n\tPermissions\t= 644\n</File>">>files;
> > done)
> > cp -a README /opt/buildtool26/build/config/boot/etc
> > cp -a root.blk.mk /opt/buildtool26/build/config/var/lib/lrpkg
> > cp -a root.dev.mk /opt/buildtool26/build/config/var/lib/lrpkg
> > cp -a root.linuxrc /opt/buildtool26/build/config/var/lib/lrpkg
> > cp -a /opt/buildtool26/build/config/* /opt/buildtool26/staging
> > touch ./.build
> > make: Verlasse Verzeichnis '/opt/buildtool26/source/initrd'
> >
> >
> > kp
>
> Try now to rebuild initrd. I fixed makefile.

It solved the build pb's; unfortunatley I'm not able to boot from an IDE CF 
disk.

The error I see is:

LINUXRC: Bering - Initrd - 4.0.0 Rev 8 uClibc 0.9.30.3
[    1.679028] SCSI subsystem initialized
[    2.027591] usbcore: registered new interface driver usbfs
[    2.037774] usbcore: registered new interface driver hub
[    2.044838] usbcore: registered new device driver usb
[    2.065189] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.075893] ohci_hcd 0000:00:0f.4: OHCI Host Controller
[    2.076635] ohci_hcd 0000:00:0f.4: new USB bus registered, assigned bus 
number 1
[    2.088773] ohci_hcd 0000:00:0f.4: irq 15, io mem 0xefffe000
[    2.174051] usb usb1: configuration #1 chosen from 1 choice
[    2.185534] hub 1-0:1.0: USB hub found
[    2.185534] hub 1-0:1.0: 4 ports detected
[    2.222875] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.232084] Warning! ehci_hcd should always be loaded before uhci_hcd and 
ohci_hcd, not after
[    2.241631] ehci_hcd 0000:00:0f.5: EHCI Host Controller
[    2.247743] ehci_hcd 0000:00:0f.5: new USB bus registered, assigned bus 
number 2
[    2.282635] ehci_hcd 0000:00:0f.5: irq 15, io mem 0xefffd000
[    2.288451] ehci_hcd 0000:00:0f.5: USB 2.0 started, EHCI 1.00
[    2.295402] usb usb2: configuration #1 chosen from 1 choice
[    2.302235] hub 2-0:1.0: USB hub found
[    2.302945] hub 2-0:1.0: 4 ports detected
LINUXRC: Installing -  root: root(nf!)  config: config(nf!)  etc: etc(nf!)  
modules: modules(nf!)  dropbear: dropbear(nf!)  .
/init: source: line 309: can't open '/var/lib/lrpkg/root.dev.own'
[    3.433366] Kernel panic - not syncing: Attempted to kill init!


This is usually a pb, when initrd can't find the media with the packages.

The syslinux.cfg I use (this is a dual boot setup for CF) looks like this:

kernel linux26
append initrd=initrd26.lrp root=/dev/ram0 rw console=ttyS0,115200n8 
LEAFCFG=/dev/sda2:msdos PKGPATH=/dev/sda2:msdos 
LRP=root,config,etc,modules,dropbear

I also tried the shorter one
kernel linux26
append initrd=initrd26.lrp root=/dev/ram0 rw console=ttyS0,115200n8 
LEAFCFG=/dev/sda2:msdos

kp

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo

_______________________________________________
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel

Reply via email to