Bekijk de volledige versie : firmware 1.9.2.7 rc 3 rootfs
infohunt2
09-01-2005, 21:00
maybe a stupid question, but is it possible to use rootfs with the current firmware 1.9.2.7-3 ?
As soon as i boot from usb-disk with rootfs (old 1.8.1.7-2a) my wl500g starts, but with WLAN disabled !?
Is this a normal behaviour or am I doing something wrong ?
Thanks in advance...
Keep in mind, that even with root fs, kernel is still loaded from the built-in flash. So, you need to keep this in sync.
infohunt2
10-01-2005, 06:06
Ok, I understand that kernel is always loaded from the flash-fs ... but how can I keep both in sync ? Or to ask more precisely ... how can I boot from my external USB-HD with WLAN enabled ??
I was wondering that there's no new rootfs tar.gz archive with the V1.9.2.7 of the firmware ... does 1.9 work with 1.8 rootfs-tar.gz ??
Read wl500g.dyndns.org page carefully, it contains info on how to create rootfs on the router itself.
infohunt2
10-01-2005, 11:30
As I've written in my first message, I already have an usb-hd with an rootfs (v1.8.1.7-2a wl500g-1.8.1.7-2a-root.tar.bz2) and I've got a linux pc from which I normally create these partitions for the wl500g.
But booting from this partition results in a working wl500g except the WLAN .....
I've read the wl500g.dyndns.org page, but did not find any additional information concerning the new firmware (1.9.7.2-3) and rootfs ...
Any help is really welcom
Boot with rootfs disabled, or just disconnect your usb drive.
There is a topic named "Root file system on the external USB drive". Have you read it?
Root file system on the external USB drive
Since 1.7.5.6-1 custom firmwares support booting with root fs on the external usb storage drive. In order to make you unit from usb drive partition 1 you will need to
Create and format an ext3 partition on the usb drive using
# play with fdisk if you need to repartition drive
fdisk /dev/scsi/host0/bus0/target0/lun0/disc
# "format" partition
mke2fs -j /dev/scsi/host0/bus0/target0/lun0/part1
Create an initial image for the root fs
# mount it
mount -t ext3 /dev/scsi/host0/bus0/target0/lun0/part1 /mnt
# copy everything
tar cvO -C / .version bin/ etc/ lib/ sbin/ usr/ www/ var/ | tar x -C /mnt
# create required dirs
mkdir -p /mnt/tmp && mkdir -p /mnt/dev && mkdir -p /mnt/proc && mkdir -p /mnt/mnt
# unmount
umount /mnt
Set the right boot device using
nvram set boot_dev="/dev/scsi/host0/bus0/target0/lun0/part1"
Commit the changes using
nvram commit
After that wl500g on each reboot will try mounting the external device and if this succeeds boot from it, otherwise it will using the flashed root fs. Once you've booted from external storage you can remount your fs read-write using
mount -o remount,rw,noatime /dev/scsi/host0/bus0/target0/lun0/part1 /
(use noatime option to minimize the number of writes), make the changes and remount it read-only using
mount -o remount,ro /dev/scsi/host0/bus0/target0/lun0/part1 /
You can also put remount command to the post-boot script.
To free up unused ram space add this lines to your pre-boot script:
#!/bin/sh
[ -d /mnt/dev ] && umount /mnt/dev && umount /mnt/proc && umount /mnt