Howto update /lib/firmware to Zeroshell2.0-RC2

Hi,

more of us have troubles with new usb wi-fi driver

the first solution is to add into post-boot script a command to mount a directory in bind mode

mount --bind /DB/newdir/firmware /lib/firmware
or
mount -o bind /DB/newdir/firmware /lib/firmware

but if you need to remastering all /cdrom you need another solution.

As RDA wrote and me too :-), the idea is:

1) boot a ZS 2GB image for IDE, SATA, SCSI e USB disks ( you can take the ZeroShell-2.0.RC2-VirtualBox.zip  )

and then  copy all /cdrom into a new location like /DB/newdir  but  the better idea is to add another device ( 4Gb ) into vm

#cp -avf /cdrom/* /newdevice/sz-roots   or
#tar cvf - . | ( cd /newdevice/sz-roots; tar xvf - )
#cd /newdevice/sz-roots/lib/firmware
#scp root@someplace:/firmware_that_you_need . 
#cd /newdevice/sz-roots 
#rm rr_moved 
#mkisofs -J -r -U -o ../cdrom.iso ./

2) shutdown and boot with a ZS Iso image for CD , now locate the partition 2 like /dev/sdXXX2  take care to locate the right partition !!!

1) mount /newdivice 
2) cd /newdevice
3) dd if=cdrom of=/dev/sdxxx2
4) dd if=/dev/sdxxx of=ZS.raw 
5) scp ZS.raw root@someplace:/some/dir
6) with SuseStudio ImageWrite copy to usb stick or with win32diskimager 
 or with Gnu command  dd=/dev/sdxxx of=/dev/usb_stick

the end

🙂

 

p.s

There is an issue with wifi.manager script when you reload or assign a new WLAN  as suggested from Arth the solution is to add the function driver-load inside the  if/else/fi  into /root/kerbynet.cgi/scripts/start-wifi  script

 

12 if [ -n "$MODULE" ] ; then
13 echo "$MODULE" > $REGISTER/system/net/WiFi/module
14 if [ "$OPT" != norestart ] ; then
15  echo "--> Reloading Wi-Fi Kernel module ($MODULE) ..."
16  modprobe -r $MODULE
17  modprobe $MODULE
    driver-load
18  setregdomain
19 else
.....
.....
56 fi
..
fi

then create a new pre-boot script like this one

cat /DB/patch/start-wifi >/root/kerbynet.cgi/scripts/start-wifi

and also after reboot you have a stable WLAN

see you soon

UPDATE: In my case with USB KEY NETGEAR WNDA3100 at restart with wifi-manager the pair wlan0—-WLAN00 was lost.  So after a  while :

A) into wifi.inc

130 function driver-load {
131 # funzione di caricamento dei driver con creazione entry nella directory dei
132 # device fisici
133 ###### <--------> ########
134   if [ "$(ls /sys/class/net/wlan? 2>/dev/null )X" = "X" ] ; then
135 ###### <-------->########

176 function wifi-list {
177 # funzione che fa la lista dei device fisici
178 ###### <--------> ########
179     cd /sys/class/net
180     echo $(ls -d wlan? 2>/dev/null )
181 ###### <--------> ########

B) into start-wifi

18 ###### <--------> ########
19     sleep 3
20     driver-load
21     setregdomain
22 ###### <--------> ########

 

then a new pre-boot script like this one

cat /DB/patch/wifi.inc >/root/kerbynet.cgi/scripts/wifi.inc

ps.

You can get all new firmware with git command on another server and then scp on forge directory:

git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git linux-firmware

If you need an image with all firmware update,  please send me an email and I transfer you  (with wetransfer of course 😉 an zipped image file ( 178 MB )

p.p.s

with no charges  😉

Comments are closed.