Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What happend to pgprs? #498

Closed
JakeSFR opened this issue Sep 28, 2014 · 6 comments
Closed

What happend to pgprs? #498

JakeSFR opened this issue Sep 28, 2014 · 6 comments
Labels

Comments

@JakeSFR
Copy link
Contributor

JakeSFR commented Sep 28, 2014

Just noticed (in Slacko-5.9.3 & Tahr-5.8.3) that /lib/modules/all-firmware/pgprs/* no longer exists, hence "Connect to internet by -> Wireless GPRS modem" in "Internet Connection Wizard" won't work.
Was it intentional removal?

@01micko
Copy link
Contributor

01micko commented Oct 1, 2014

Hmm.. got lost with deletion in 3builddistro_Z . Oversight. Ideas welcome.

@JakeSFR
Copy link
Contributor Author

JakeSFR commented Oct 2, 2014

Network related stuff is not my strong suit, but maybe just move all pgprs' files to their destination locations in rootfs-skeleton?
The only difference would be two more items in Network menu, no one will notice. ;)
Unless there was a significant reason (some conflicts?) to have it hidden by default...

Btw, and what about all those additional files (apart from firmware binaries), which are no longer present in current woof-ce builds (like e.g. script from ./all-firmware/ipwireless/etc/init.d/Ipwireless) - are they still necessary or redundant/obsolete?

Thanks.

@mavrothal
Copy link
Contributor

There is no reference to pgprs in 3builddistro or 3buiddistro-Z. What I believe is happening is that the firmware tarballs in http://distro.ibiblio.org/puppylinux/firmware/ that are used with the new style kernels, do not have the pgprs firmware. Whoever build them, left them out.
They probably need to be rebuild with the gprs included, though it may not be so simple...

@mavrothal
Copy link
Contributor

Actually this patch may fix this

--- a/woof-code/3builddistro-Z
+++ b/woof-code/3builddistro-Z
@@ -638,6 +638,14 @@ fi
 echo "...done."

 cd sandbox3
+# Add All-firmware files. May need to move after the kernel
+cp -a -f ../kernel-skeleton/* rootfs-complete/
+cd rootfs-complete
+./pinstall.sh
+sync
+rm -f ./pinstall.sh
+cd ..
+mv -f rootfs-complete/etc/modules/firmware.dep rootfs-complete/etc/modules/firm
 #now do the kernel...
 #140615
 echo

If any puppy builder can test this pls let us know.

@mavrothal
Copy link
Contributor

I tried the following patch and works

--- a/woof-code/3builddistro-Z
+++ b/woof-code/3builddistro-Z
@@ -723,6 +723,15 @@ mv -f vmlinuz-$KERNEL_VERSION vmlinuz
 cd ..
 #end 140617

+# Add All-firmware files. May need to move after the kernel
+cp -a -f ../kernel-skeleton/* rootfs-complete/
+cd rootfs-complete
+./pinstall.sh
+sync
+rm -f ./pinstall.sh
+cd ..
+mv -f rootfs-complete/etc/modules/firmware.dep rootfs-complete/etc/modules/firmware.dep.$(echo ${KERNEL_VERSION} | cut -f 1 -d '-')
+
 #120613 kernel image can have different names. rename to vmlinuz, however change back later if build sd card...
 REALKERNAME='vmlinuz'
 [ -f rootfs-complete/boot/vmlinuz ] && cp rootfs-complete/boot/vmlinuz build/
@@ -1751,9 +1760,9 @@ do find rootfs-complete/ -type f -name $r -delete
     echo "deleting $r"
 done
 #140616 remove firmware - in kernel-modules.sfs = $ZDRVSFS
-echo "Removing firmware as it is in the z drive"
-rm -rf rootfs-complete/lib/{modules,firmware}
-sleep 1
+#echo "Removing firmware as it is in the z drive"
+#rm -rf rootfs-complete/lib/{modules,firmware}
+#sleep 1
 #100613 create font cache for fontconfig (in /var/cache/fontconfig)...
 echo
 echo "Creating Fontconfig cache files..."

However, is the wrong approach. The files should be added in the "huge kernel" sfs instead and the kernels should be rebuild.

@mavrothal
Copy link
Contributor

Fixed in c066ff4
closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants