Hi David

i can boot automatically using two method:

    * First method:
          o special ELAN kernel variant
          o edit initrd.lrp /boot/etc/modules to append a "pata_legacy"
            line (nothing else)
          o devices are automaticaly created by "mdev"
    * Second Method (preferred because there is not editing in
      initrd.lrp package)
          o special ELAN kernel variant
          o edit syslinux.cfg, adding a "KMODULES=pata_legacy" on the
            "DEFAULT" line (see the follow syslinux.cfg sample)
          o device are automatically created by "mdev" during boot process

A last note: net4501 has three NS DP83816 network card, so you must load 
the "natsemi" kernel modules to activate these nic cards (making a "Find 
& load modules for hardware" discover the natsemi driver correctly)

I have booted correctly the system without "libata.dma=0" parameter, so 
I think it is not necessary.

Thanks
Graziano

------ syslinux.cfg on my net4501 -------------
SERIAL 0 19200
DISPLAY syslinux.dpy
TIMEOUT 0
APPEND reboot=bios console=ttyS0,19200n8 VERBOSE=1
DEFAULT /syslinux/linux initrd=/initrd.lrp rw root=/dev/ram0 
LEAFCFG=/dev/sda1:vfat KMODULES=pata_legacy



Il 05/05/2011 19.00, davidMbrooke ha scritto:
> Hi Graziano,
>
> Excellent. Other people will be using the net4501 with 4.x so I would
> like to include the necessary changes automatically as part of the build
> process rather than having to edit the initrd manually. Since we seem to
> need a custom kernel we need a custom disk Image, so we might as well
> tailor that for the net45xx.
>
> Once you get an initrd.lrp and leaf.cfg which boot automatically please
> confirm what you had to edit so that I can include that in the build
> process. Seems to be at least:
>     - Special "ELAN" kernel variant
>     - Module pata_legacy, which is not automatically detected so needs to
> be listed in /boot/etc/modules
>        - This in turn needs libata and scsi_mod Modules ???
>     - The device files need to be created explicitly ???
>        - Maybe loading sd_mod will create these ???
>
> Do you actually need to specify libata.dma=0 or will it work without
> that?
>
> dMb
>
> On Thu, 2011-05-05 at 16:55 +0200, Graziano Brioschi wrote:
>> Hi Andrew
>>
>> Il 05/05/2011 8.34, Andrew ha scritto:
>>> find /sys/devices -iname modalias -exec cat {} \;
>> Thank you for suggestions; my net450 seems to work correctly using
>> "pata_legacy" module!
>>
>> Here the output about my test:
>>
>> .....
>> [    4.156221] Write protecting the kernel read-only data: 744k
>> [    4.156221] Write protecting the kernel read-only data: 744k
>> LINUXRC: Bering - Initrd - 4.0.0 Rev 12 uClibc 0.9.30.3
>> LINUXRC: Parsing kernel command line...
>> /init: eval: line 1: KCMD_libata.dma=0: not found
>> LINUXRC: Loading modules...
>> LINUXRC: Root: /dev/ram0
>> LINUXRC: Looking for leaf.cfg...
>> LINUXRC: Generating default dirs...
>> LINUXRC: Generating /tmp&  /var/log partitions ...
>> LINUXRC: PKGPATH is empty or unset. Can not install packages.
>> LINUXRC: LRP= is empty or unset.  Can not install packages.
>> LINUXRC: chown and chmod /dev...
>> LINUXRC: Loaded Packages
>> LINUXRC: Creating new rootfs...
>> LINUXRC: Switch_root into new rootfs...
>> can't run '/etc/init.d/rcS': No such file or directory
>>
>> Please press Enter to activate this console.
>>
>> / # find /sys/devices -iname modalias -exec cat {} \;
>> platform:rtc_cmos
>> platform:pcspkr
>> platform:serial8250
>> pci:v00001022d00003000sv00000000sd00000000bc06sc00i00
>> pci:v0000100Bd00000020sv0000100Bsd00000020bc02sc00i00
>> pci:v0000100Bd00000020sv0000100Bsd00000020bc02sc00i00
>> pci:v0000100Bd00000020sv0000100Bsd00000020bc02sc00i00
>> / # modprobe ata_generic
>> [ 1074.983892] SCSI subsystem initialized
>> [ 1074.983892] SCSI subsystem initialized
>> / #
>>
>>
>>
>> Unfortunately i cannot see my IDE devices...
>>
>> then:
>>
>>
>> / # rmmod ata_generic
>> / # lsmod
>>       Not tainted
>> libata 115356 0 - Live 0xb48c7000
>> scsi_mod 93536 1 libata, Live 0xb486e000
>> vfat 6542 0 - Live 0xb483b000
>> fat 34532 1 vfat, Live 0xb4825000
>> isofs 17079 0 - Live 0xb4809000
>> / # modprobe pata_legacy
>> [ 1166.328887] scsi0 : pata_legacy
>> [ 1166.328887] scsi0 : pata_legacy
>> [ 1166.339889] ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
>> [ 1166.339889] ata1: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
>> [ 1166.499877] ata1.00: CFA: SanDisk SDCFH-1024, HDX 4.09, max MWDMA2
>> [ 1166.499877] ata1.00: CFA: SanDisk SDCFH-1024, HDX 4.09, max MWDMA2
>> [ 1166.502741] ata1.00: 2001888 sectors, multi 0: LBA
>> [ 1166.502741] ata1.00: 2001888 sectors, multi 0: LBA
>> [ 1166.503116] ata1.00: configured for PIO
>> [ 1166.503116] ata1.00: configured for PIO
>> [ 1166.507012] scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-10
>> HDX  PQ: 0 ANSI: 5
>> [ 1166.507012] scsi 0:0:0:0: Direct-Access     ATA      SanDisk SDCFH-10
>> HDX  PQ: 0 ANSI: 5
>> [ 1166.536888] scsi1 : pata_legacy
>> [ 1166.536888] scsi1 : pata_legacy
>> [ 1166.550882] ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15
>> [ 1166.550882] ata2: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15
>> / #
>>
>> Good! the output is more interesting!
>>
>> cat /sys/class/scsi_host/host0/device/target0\:0\:0/0\:0\:0\:0/model
>> SanDisk SDCFH-10
>>
>> and finally:
>>
>> /dev # mknod /dev/sda b 8 0
>> /dev # mknod /dev/sda1 b 8 1
>> /dev # mount -t vfat /dev/sda1 /mnt
>> [ 1888.810891] sd 0:0:0:0: [sda] 2001888 512-byte logical blocks: (1.02
>> GB/977 MiB)
>> [ 1888.810891] sd 0:0:0:0: [sda] 2001888 512-byte logical blocks: (1.02
>> GB/977 MiB)
>> [ 1888.829888] sd 0:0:0:0: [sda] Write Protect is off
>> [ 1888.829888] sd 0:0:0:0: [sda] Write Protect is off
>> [ 1888.842901] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
>> enabled, doesn't support DPO or FUA
>> [ 1888.842901] sd 0:0:0:0: [sda] Write cache: disabled, read cache:
>> enabled, doesn't support DPO or FUA
>> [ 1888.876878]  sda:[ 1888.876878]  sda: sda1 sda1
>>
>> [ 1888.919892] sd 0:0:0:0: [sda] Attached SCSI removable disk
>> [ 1888.919892] sd 0:0:0:0: [sda] Attached SCSI removable disk
>>
>>
>> it seems to work!
>>
>> Thanks all!
>> Graziano
>>
>> I will put all these commands together in an initrd.lrp for net4501 and
>> I will share it if there is somebody who want to install new BuC40 on
>> Soekris Enginnering net4501.
>>
>>
>>
>> -- 
>>
>> Graziano Brioschi
>>
>> Outland s.a.s.
>> sede operativa:
>> Via A. Don Rocca, 13
>> 20030, Senago (MI)
>> tel: 02 9948 6014
>> mobile: 328 8382622
>> email: graziano.brios...@outland.it
>> -->   U4E<--
>>
>>
>> ------------------------------------------------------------------------------
>> WhatsUp Gold - Download Free Network Management Software
>> The most intuitive, comprehensive, and cost-effective network
>> management toolset available today.  Delivers lowest initial
>> acquisition cost and overall TCO of any competing solution.
>> http://p.sf.net/sfu/whatsupgold-sd
>> ------------------------------------------------------------------------
>> leaf-user mailing list: leaf-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/leaf-user
>> Support Request -- http://leaf-project.org/
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today.  Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> ------------------------------------------------------------------------
> leaf-user mailing list: leaf-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/

-- 

Graziano Brioschi

Outland s.a.s.
sede operativa:
Via A. Don Rocca, 13
20030, Senago (MI)
tel: 02 9948 6014
mobile: 328 8382622
email: graziano.brios...@outland.it
-->  U4E<--

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to