PDA

Bekijk de volledige versie : Status of IDE support in WL 500 Gx firmware?



hugo
10-11-2004, 19:02
Hi,

just a note before a long 4 day week end to know if there need to be some stuff done to help for IDE support in Oleg's firmware. Is it already sorted out, or does it still need more research to mount the drives?

I can go back to my work table if needed for something

Oleg
10-11-2004, 19:48
At the moment I've finished examining ASUS wl-hdd ide stuff. The modules are in fact built using 1.7.5.6 kernel sources as base with several modifications. ASUS wl-hdd kernel sources is the real fake...
So, for now I've backported 1.7.5.6 stuff to newer kernel used in the 1.8.1.7 (promise ide module is really buggy - someone has "adjusted" it to make it unusable).
Yesterday Antliloop was able to load recompiled ide modules, but no partitions was showed as before. Probably something is missing is the kernel, or we've yet another bug. I'm still invistigating this.
Current version is available here - wl500g.dyndns.org/WLHDD-1.8.1.7-3-pre13.trx it should load ide stuff automatically on boot, don't know if this help us to workaround partitions problems. You may want to try this on your wl-hdd.
Also, i need a dmesg output from with native firmware running - you will need to copy full busybox to your drive. It whould be great if you post it here.

Oleg
10-11-2004, 20:00
Also, cat /proc/pci from native firmware required.

hugo
10-11-2004, 20:31
ok, I'm in. I still have to investigate further, but I can see the partitions. Right now, I cannot mount them: I get this:

mount: Mounting /dev/ide/host0/bus0/target0/lun0/part1 on /tmp/harddisk failed: Invalid argument

using mount /dev/ide/host0/bus0/target0/lun0/part1 /tmp/harddisk

I probably have to set a paramter, but I didn't had to with previous frimware.

Telnet is buggy, auth doesn't work properly. I have to access using admin web page. i'll try to mount a simple telnetd without auth if I get access to hdd.

I'll post need dump after this post

hugo
10-11-2004, 20:32
here is /proc/partition:


major minor #blocks name

3 0 5276880 ide/host0/bus0/target0/lun0/disc
3 1 5178568 ide/host0/bus0/target0/lun0/part1
3 2 98280 ide/host0/bus0/target0/lun0/part2

Result are coherent

hugo
10-11-2004, 20:34
ls mod result


Module Size Used by
usb-storage 62144 0 (unused)
sd_mod 13268 0 (unused)
scsi_mod 70176 1 [usb-storage sd_mod]
videodev 8304 0
printer 11900 0 (unused)
usb-ohci 21764 0 (unused)
usbcore 77224 1 [usb-storage printer usb-ohci]
ipt_NETMAP 992 0 (unused)
ip_nat_starcraft 2224 0 (unused)
wl 431504 0 (unused)
et 23224 1
ide-disk 13524 0
ide-probe-mod 11468 0
ide-mod 109568 0 [ide-disk ide-probe-mod]

hugo
10-11-2004, 21:08
no ext2 support in this firmware: got my first answer. Gotta format a partition using another FS

hugo
10-11-2004, 21:22
dmsg output


/tmp/harddisk # dmesg
CPU revision is: 00024000
Loading BCM4710 MMU routines.
Primary instruction cache 8kb, linesize 16 bytes (2 ways)
Primary data cache 4kb, linesize 16 bytes (2 ways)
Linux version 2.4.20 (root@omnibook) (gcc version 3.2.3 with Broadcom modificati
ons) #3 Wed Nov 10 22:17:25 MSK 2004
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,11
5200
CPU: BCM4710 rev 0 at 125 MHz
!unable to setup serial console!
Calibrating delay loop... 82.94 BogoMIPS
Memory: 14088k/16384k available (1611k kernel code, 2296k reserved, 216k data, 6
8k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver v1.1.22 [Flags: R/O]
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
Flash device: 0x400000 at 0x1fc00000
Physically mapped flash: squashfs filesystem found at block 1101
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x003e0000 : "linux"
0x001137f4-0x003e0000 : "rootfs"
0x003f0000-0x00400000 : "nvram"
0x003e0000-0x003f0000 : "config"
sflash: chipcommon not found
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per conntrack
ip_conntrack_pptp.c:init: ip_conntrack_pptp.c: registering helper
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
FAT: bogus logical sector size 34560
FAT: bogus logical sector size 34560
NTFS: Unable to set blocksize 512.
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 68k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller on PCI bus 01 dev 08
PCI: Enabling device 01:01.0 (0004 -> 0007)
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: ROM enabled at 0x000d0000
PDC20265: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
PDC20265: FORCING BURST BIT 0x00 -> 0x01 ACTIVE
ide0: BM-DMA at 0x0140-0x0147, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x0148-0x014f, BIOS settings: hdc:pio, hdd:DMA
hda: IBM-DADA-25400, ATA DISK drive
ide2: ports already in use, skipping probe
ide3: ports already in use, skipping probe
ide4: ports already in use, skipping probe
ide5: ports already in use, skipping probe
ide0 at 0x100-0x107,0x10a on irq 6
blk: queue c002f2c8, I/O limit 4095Mb (mask 0xffffffff)
hda: 10553760 sectors (5404 MB) w/460KiB Cache, CHS=11168/15/63, UDMA(33)
Partition check:
/dev/ide/host0/bus0/target0/lun0: [PTBL] [698/240/63] p1 p2
eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 1.3.2.0
eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 1.3.2.0
robosw_attach_ocp: no Robo device on OCP bus
robosw_attach_pmii: no Robo switch detected
Robo switch init failed
PCI: Enabling device 01:02.0 (0004 -> 0006)
eth2: Broadcom BCM4320 802.11 Wireless Controller 1.3.2.0
device eth2 entered promiscuous mode
device eth1 entered promiscuous mode
br0: port 2(eth1) entering learning state
br0: port 1(eth2) entering learning state
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth2) entering forwarding state
br0: topology change detected, propagating
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
Adpt 2 0
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Linux video capture interface: v1.00
SCSI subsystem driver Revision: 1.00
Adpt 1 0
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Adpt 0 0
Link up 0 0
Adpt ffffffff 0
ext3: No journal on filesystem on ide0(3,1)
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:01.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:01.
SQUASHFS error: Can't find a SQUASHFS superblock on ide0(3,1)
ext3: No journal on filesystem on ide0(3,1)
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:01.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:01.
SQUASHFS error: Can't find a SQUASHFS superblock on ide0(3,1)
ext3: No journal on filesystem on ide0(3,1)
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:01.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:01.
SQUASHFS error: Can't find a SQUASHFS superblock on ide0(3,1)
ext3: No journal on filesystem on ide0(3,2)
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:02.
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 03:02.
SQUASHFS error: Can't find a SQUASHFS superblock on ide0(3,2)
hub.c: new USB device 00:04.0-1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Model: USB DRIVE Rev: 2.00
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
sda : READ CAPACITY failed.
sda : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sns = 70 6
ASC=28 ASCQ= 0
Raw sense data:0x70 0x00 0x06 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x28
0x00 0x00 0x00 0x00 0x00
sda : block size assumed to be 512 bytes, disk size 1GB.
/dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 0
unable to read partition table
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
VFS: Disk change detected on device 08:00
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
/dev/scsi/host0/bus0/target0/lun0: p1
VFS: Can't find ext3 filesystem on dev sd(8,1).
/tmp/harddisk #

Have to find a way to format ext3 or fat without flashing back firmware

hugo
10-11-2004, 21:28
I'm sure it works, I'm going to revert to wl-hdd stock firmware to format the filesystem

hugo
10-11-2004, 21:33
# cat /proc/pci
PCI devices found:
Bus 0, device 0, function 0:
Class 0500: PCI device 14e4:0803 (rev 0).
IRQ 6.
Non-prefetchable 32 bit memory at 0x18000000 [0x18000fff].
Non-prefetchable 32 bit memory at 0x0 [0x7ffffff].
Non-prefetchable 32 bit memory at 0x10000000 [0x17ffffff].
Non-prefetchable 32 bit memory at 0x80000000 [0xffffffff].
Bus 0, device 1, function 0:
Class 0200: PCI device 14e4:4711 (rev 0).
IRQ 5.
Non-prefetchable 32 bit memory at 0x18001000 [0x18001fff].
Bus 0, device 2, function 0:
Class 0200: PCI device 14e4:4713 (rev 0).
IRQ 3.
Non-prefetchable 32 bit memory at 0x18002000 [0x18002fff].
Bus 0, device 3, function 0:
Class 0703: PCI device 14e4:4712 (rev 0).
IRQ 2.
Non-prefetchable 32 bit memory at 0x18003000 [0x18003fff].
Bus 0, device 4, function 0:
Class 0c03: PCI device 14e4:4715 (rev 0).
IRQ 2.
Non-prefetchable 32 bit memory at 0x18004000 [0x18004fff].
Bus 0, device 5, function 0:
Class 0604: PCI device 14e4:0804 (rev 0).
IRQ 6.
Non-prefetchable 32 bit memory at 0x18005000 [0x18005fff].
Non-prefetchable 32 bit memory at 0x8000000 [0xfffffff].
Bus 0, device 6, function 0:
Class 0b30: PCI device 14e4:0805 (rev 0).
IRQ 6.
Non-prefetchable 32 bit memory at 0x18006000 [0x18006fff].
Non-prefetchable 32 bit memory at 0xff200000 [0xff3fffff].
Bus 0, device 7, function 0:
Class 0501: PCI device 14e4:0811 (rev 0).
IRQ 2.
Non-prefetchable 32 bit memory at 0x18007000 [0x18007fff].
Non-prefetchable 32 bit memory at 0x1f000000 [0x1fffffff].
Bus 0, device 8, function 0:
Class 0200: PCI device 14e4:4713 (rev 0).
IRQ 4.
Non-prefetchable 32 bit memory at 0x18008000 [0x18008fff].
Bus 1, device 0, function 0:
Class 0600: PCI device 14e4:4710 (rev 1).
IRQ 6.
Non-prefetchable 32 bit memory at 0x40000000 [0x40001fff].
Prefetchable 32 bit memory at 0x0 [0x7ffffff].
Bus 1, device 1, function 0:
Class 0180: PCI device 105a:0d30 (rev 2).
IRQ 6.
Master Capable. Latency=64.
I/O at 0x100 [0x107].
I/O at 0x108 [0x10b].
I/O at 0x110 [0x117].
I/O at 0x118 [0x11b].
I/O at 0x6800 [0x683f].
Non-prefetchable 32 bit memory at 0x0 [0x1ffff].
Bus 1, device 2, function 0:
Class 0280: PCI device 14e4:4320 (rev 3).
IRQ 6.
Non-prefetchable 32 bit memory at 0x40002000 [0x40003fff].

from stock firmware

hugo
10-11-2004, 21:59
Can somebody help me with a busybox version and instruction to create and format a partition under fat or ext3 filesystem?

Antiloop
10-11-2004, 23:34
new version:
wl500g.dyndns.org/WLHDD-1.8.1.7-3-pre14.trx

now usb hotplug works too, also powerled is not flashing anymore

telnet is working fine.. just turn off your wl-hdd and then on..

otherwise l/p root / empty
after poweroff/on admin / admin

Oleg
11-11-2004, 06:59
Can somebody help me with a busybox version and instruction to create and format a partition under fat or ext3 filesystem?
Wait for -pre15, it will include e2fs-progs...

hugo
11-11-2004, 14:35
or maybe we can add ext2fs support? Most of the Wl-hdd user will have this file system by default as soon as they format using the web pages

For info, here is the dmesg of the pre14 version, just in case it's needed


[root@(none) /proc]$ dmesg
CPU revision is: 00024000
Loading BCM4710 MMU routines.
Primary instruction cache 8kb, linesize 16 bytes (2 ways)
Primary data cache 4kb, linesize 16 bytes (2 ways)
Linux version 2.4.20 (root@omnibook) (gcc version 3.2.3 with Broadcom modificati
ons) #3 Wed Nov 10 22:17:25 MSK 2004
Determined physical RAM map:
memory: 01000000 @ 00000000 (usable)
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,11
5200
CPU: BCM4710 rev 0 at 125 MHz
!unable to setup serial console!
Calibrating delay loop... 82.94 BogoMIPS
Memory: 14088k/16384k available (1611k kernel code, 2296k reserved, 216k data, 6
8k init, 0k highmem)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Checking for 'wait' instruction... unavailable.
POSIX conformance testing by UNIFIX
PCI: Fixing up bus 0
PCI: Fixing up bridge
PCI: Fixing up bus 1
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver v1.1.22 [Flags: R/O]
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI en
abled
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Physically mapped flash: Swapping erase regions for broken CFI table.
number of CFI chips: 1
Flash device: 0x400000 at 0x1fc00000
Physically mapped flash: squashfs filesystem found at block 1101
Creating 5 MTD partitions on "Physically mapped flash":
0x00000000-0x00040000 : "pmon"
0x00040000-0x003e0000 : "linux"
0x001137f4-0x003e0000 : "rootfs"
0x003f0000-0x00400000 : "nvram"
0x003e0000-0x003f0000 : "config"
sflash: chipcommon not found
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 1024 bind 2048)
ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per conntrack
ip_conntrack_pptp.c:init: ip_conntrack_pptp.c: registering helper
ip_conntrack_pptp version 1.9 loaded
ip_nat_pptp version 1.5 loaded
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: Ethernet Bridge 008 for NET4.0
802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
FAT: bogus logical sector size 32256
FAT: bogus logical sector size 32256
NTFS: Unable to set blocksize 512.
VFS: Mounted root (squashfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 68k freed
Warning: unable to open an initial console.
Algorithmics/MIPS FPU Emulator v1.5
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PDC20265: IDE controller on PCI bus 01 dev 08
PCI: Enabling device 01:01.0 (0004 -> 0007)
PDC20265: chipset revision 2
PDC20265: not 100% native mode: will probe irqs later
PDC20265: ROM enabled at 0x000d0000
PDC20265: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
PDC20265: FORCING BURST BIT 0x00 -> 0x01 ACTIVE
ide0: BM-DMA at 0x0140-0x0147, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0x0148-0x014f, BIOS settings: hdc:pio, hdd:DMA
hda: IBM-DADA-25400, ATA DISK drive
ide2: ports already in use, skipping probe
ide3: ports already in use, skipping probe
ide4: ports already in use, skipping probe
ide5: ports already in use, skipping probe
ide0 at 0x100-0x107,0x10a on irq 6
blk: queue c002f2c8, I/O limit 4095Mb (mask 0xffffffff)
hda: 10553760 sectors (5404 MB) w/460KiB Cache, CHS=11168/15/63, UDMA(33)
Partition check:
/dev/ide/host0/bus0/target0/lun0: [PTBL] [698/240/63] p1
eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 1.3.2.0
eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 1.3.2.0
robosw_attach_ocp: no Robo device on OCP bus
robosw_attach_pmii: no Robo switch detected
Robo switch init failed
PCI: Enabling device 01:02.0 (0004 -> 0006)
eth2: Broadcom BCM4320 802.11 Wireless Controller 1.3.2.0
device eth2 entered promiscuous mode
device eth1 entered promiscuous mode
br0: port 2(eth1) entering learning state
br0: port 1(eth2) entering learning state
br0: port 2(eth1) entering forwarding state
br0: topology change detected, propagating
br0: port 1(eth2) entering forwarding state
br0: topology change detected, propagating
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
Adpt 2 0
usb.c: registered new driver usblp
printer.c: v0.13: USB Printer Device Class driver
Linux video capture interface: v1.00
Adpt 1 0
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
Adpt 0 0
Link up 0 0
Adpt ffffffff 0
[root@(none) /proc]$

Also maybe we can add something like this to startup?


makedevs /dev/hda b 3 0 0 8 s


Also, what can be done to make wireless work? I don't get any SSID brodcasted, but I still can get wl command to work


[admin@(none) /tmp]$ wl status
SSID: "arda2"
Mode: Managed RSSI: 0 dBm noise: 0 dBm Channel: 1
BSSID: 00:11:2F:XX:XX:XX Capability: ESS
Supported Rates: [ 1(b) 2(b) 5.5(b) 11(b) ]

Oleg
11-11-2004, 15:16
or maybe we can add ext2fs support?

It's just a waste of the flash space. I think ASUS will switch to ext3.



Also maybe we can add something like this to startup?


makedevs /dev/hda b 3 0 0 8 s

Use /dev/ide instead, I see no objections for creating /dev/hda.



Also, what can be done to make wireless work? I don't get any SSID brodcasted, but I still can get wl command to work


[admin@(none) /tmp]$ wl status
SSID: "arda2"
Mode: Managed RSSI: 0 dBm noise: 0 dBm Channel: 1
BSSID: 00:11:2F:XX:XX:XX Capability: ESS
Supported Rates: [ 1(b) 2(b) 5.5(b) 11(b) ]
Should work out of the box. Probably settings problem.

hugo
11-11-2004, 19:04
should I expect fdisk to work? Even if it looks like it works, I don't get any change done:

here is a sample:


[admin@(none) /bin]$ fdisk /dev/hda

Command (m for help): p

Disk /dev/hda: 5403 MB, 5403525120 bytes
240 heads, 63 sectors/track, 698 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 698 5276848+ 83 Linux

Command (m for help): d 1
Selected partition 1

Command (m for help): p

Disk /dev/hda: 5403 MB, 5403525120 bytes
240 heads, 63 sectors/track, 698 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[admin@(none) /bin]$ fdisk /dev/hda

Command (m for help): p

Disk /dev/hda: 5403 MB, 5403525120 bytes
240 heads, 63 sectors/track, 698 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 698 5276848+ 83 Linux

Command (m for help):

Is it a normal behaviour, or does this mean there is still not full access to IDE?

hugo
11-11-2004, 19:42
It's just a waste of the flash space. I think ASUS will switch to ext3.


Should work out of the box. Probably settings problem.

I was thinking about asus users that don't have access to their HD without the wl-hdd. This ones will have to use dedicated format tools or to have ext2 support as this is the only type you can get using the web interface or the telnet access. As you planned to add tools to format in ext3, this should be solved by the next version.


As for the wireless, going to router mode then back to AP mode make it works. There should be a parameter that is not set by default

Oleg
11-11-2004, 19:51
no, either busybox was not correctly rebuild or fdisk is buggy.
Try wl500g.dyndns.org/WLHDD-1.8.1.7-3-pre15.trx - I've recompiled busybox and added mke2fs and e2fsck.
To create ext3 fs just type


mke2fs -j /dev/ide/...

hugo
11-11-2004, 20:05
faliing at journal creation:


[admin@wl-hdd /]$ mke2fs -j /dev/ide/host0/bus0/target0/lun0/part1
mke2fs 1.35 (28-Feb-2004)
ext2fs_check_if_mount: No such file or directory while determining whether /dev/
ide/host0/bus0/target0/lun0/part1 is mounted.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
659936 inodes, 1319212 blocks
65960 blocks (5.00%) reserved for the super user
First data block=0
41 block groups
32768 blocks per group, 32768 fragments per group
16096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Writing inode tables: done
Creating journal (8192 blocks): mke2fs: No such file or directory
while trying to create journal
[admin@wl-hdd /]$ mount /dev/ide/host0/bus0/target0/lun0/part1 /tmp/harddisk
mount: Mounting /dev/ide/host0/bus0/target0/lun0/part1 on /tmp/harddisk failed:
Invalid argument
[admin@wl-hdd /]$

Works without journaling. I still have to find the proper mount command

Oleg
11-11-2004, 20:37
Try creating with journal size of zero, I will check for this error.

hugo
11-11-2004, 20:46
Got it. Had to create 2 partitions, create a journal using the -O journal_dev paramter, then make the fs using the -J device=/dev/hda2

Mount is ok. I can start working now

Oleg
11-11-2004, 21:12
Uploaded pre16 - please check it, should work with -j

hugo
11-11-2004, 21:13
working ok. We just need to automont HD now. I've been testing copy and file operations, and it is behaving correctly. Wireless is ok too. Samba is awfully buggy and slow and there is no way to access the HDD out of the box. But it's just a question of time now

EDIT: This comment is for pre15, as I could finaly get my fs created.

I'm trying the pre16 right now

hugo
11-11-2004, 21:20
pre16 can format using the -j option as planned

Oleg
11-11-2004, 21:27
Well, for now mount your disk in the post-boot script, this is really easy.

As for samba - you need create correct config files for using it. Also, you should set LAN hostname for samba to work. And yes, samba is now uses users/passwords.

Mine files are as following:


[root@wl500g etc]$ cat /etc/passwd
root:$1$$LMuXuAPfSStW8rhnojbc41:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin
oleg:x:100:100:oleg:/tmp/harddisk:/sbin/nologin
nk:x:100:100:nk:/tmp/harddisk:/sbin/nologin

[root@wl500g etc]$ cat /etc/smbpasswd
# Samba SMB password file
root:0:6F9F65B23B4B48E7613E8293942509F0:7741DF71C7 48ABCC71C6C263B99C2B08:root:/usr/local/root:/bin/sh
oleg:100:9EE3D0611811EA5C417EAF50CEAC29C3:F3AC46A6 CB04CB32FE1C77A025CF6C53:oleg:/tmp/harddisk:/sbin/nologin
nk:100:8A5D3EB54FF11B0DB79AE2610DF89D4C:9FDB1AFF30 84809671715D8AE948AA35:nk:/tmp/harddisk:/sbin/nologin
[root@wl500g etc]$ cat /etc/smbusers
root = administrator
[root@wl500g etc]$ cat /etc/smb.conf
[global]
workgroup = WORKGROUP
guest account = nobody
security = user
encrypt passwords = yes
log level = 1
max log size = 100
username map = /etc/smbusers
client code page = 866
character set = 1251
[share]
path = /tmp/harddisk
writable = yes
[root$]
path = /
writable = yes
[root@wl500g etc]$

Antiloop
11-11-2004, 22:58
As for the wireless, going to router mode then back to AP mode make it works. There should be a parameter that is not set by default
wireless works here after restoring defaults via the button out of box..

Antiloop
12-11-2004, 00:10
ehmz..

well mounting goes out of box..?
at this moment i'm too lazy to get out of my bed to unplug the usbstick that i've sticked in.. maybe the usb stick is causing the auto-mount of both devices:


[admin@WLHDD root]$ mount
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /tmp/harddisk type ext3 (rw,noatime)
/dev/discs/disc1/part1 on /tmp/harddisk/part1 type vfat (rw,sync)


i've found an error, when using DHCP (as client thus in AP mode) /etc/hosts uses 192.168.1.1 as ip_address and thus NMBD thinks it's that IP..
when setting it static, it works around the problem

at this moment i can't write when using samba.. have to look further..
i will also try ftp..

Antiloop
12-11-2004, 00:13
writing speed sux..
Transfer queue completed
Transferred 1 file totaling 1,66 MB in 20,94 (83,83 KBps)

downloading went fast.. (700kb/sec) so i'm uploading 15mb now to measure it a bit more effectivily

ps.. currently i'm doing everything wireless (using wireless from wl-hdd)

Antiloop
12-11-2004, 00:42
150 Opening BINARY mode data connection for 'test' (52342784 bytes).
226 Transfer complete.
Transferred: test 49,92 MB in 38,99 (1.311,17 KBps)
Transfer queue completed
Transferred 1 file totaling 49,92 MB in 40,59 (1.311,17 KBps)


... :S

tested with wire..

hugo
12-11-2004, 17:49
ehmz..

well mounting goes out of box..?
at this moment i'm too lazy to get out of my bed to unplug the usbstick that i've sticked in.. maybe the usb stick is causing the auto-mount of both devices:



That's it: Automount only work with an USB stick inserted. Otherwise, you have to mount manually

I've added the correct parameters in post boot to sort this out

Antiloop
12-11-2004, 21:55
That's it: Automount only work with an USB stick inserted. Otherwise, you have to mount manually

I've added the correct parameters in post boot to sort this out
eh yes.. forgot to post that yesterday.. :D

but this should be piece of cookie to change it in the bootup scripts..