alphaOS [closed]

A home for all kinds of Puppy related projects
Message
Author
User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#581 Post by pemasu »

I checked what init scripts there are:

/etc/init.d/cups

This lead me to thinking that cups has been included. My mistake. I suppose there isnt many Puppies or Puplets which does not include Cups, so...I made my conclusion with this backround and with this init script finding.

Thank you of correction.

tony
Posts: 334
Joined: Sat 14 Jan 2006, 10:52
Location: Montreal.ca

#582 Post by tony »

Hi simargl,

adding a wl wifi driver into alphaOS 9.0 would help me a lot.

Regards Tony.

simargl

#583 Post by simargl »

tony wrote:adding a wl wifi driver into alphaOS 9.0 would help me a lot.
If you explain how to do that, I will add driver you need. I mean what exactly should be enabled in kernel config. Is that driver available in Puppy Precise, because I used same kernel config in the beginning as in Puppy Precise. Later config file was slightly changed, but nothing at all really important for wireless drivers.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#584 Post by pemasu »

Still playing with this build, so I downloaded devx sfs and kernel source sfs. I patched wl source with needed patches and compiled the wl.ko module.
wl.ko means proprietary broadcom proprietary wireless driver which supports chip id`s which are not supported other way...or wl.ko provide alternative support.

http://www.broadcom.com/support/802.11/linux_sta.php

Nowadays there is also brcmsmac and brcmfmac drivers in official kernel, but there are still chips which work only with wl.ko.

http://wireless.kernel.org/en/users/Drivers/b43

Chip id`s and supporting driver are found from above page.

Cave out. wl.ko does not like ssb and b43. They need to be blacklisted or unloaded before loading wl.

Some kind logistic system would be recommended if you include both...wl.ko and b43.ko.

I have just struggled with stubborn broadcom support without knowing why it does not load. Puppies has rerwin`s provided logistic files for friendly coexistence of b43 - ssb - brcm - bcma and wl.

Here is older logistic init scrip attached for partial logistic support for inspecting. It unfortunately does prohibit the usage of some b43 needed chips. So...it is not perfect. Rerwin`s logistic files are better. In pure Puppies.

It looks like you havent included brcmfmac driver, brcmsmac driver only.

https://wiki.archlinux.org/index.php/Broadcom_wireless

Including wl.ko module to the build is tricky, that is what I try to post. Lol.

Here is the compiled wl.ko gzipped: http://www.smokey01.com/pemasu/Temp/wl.ko.gz

And as attachment the ssb -b43 removal - wl compliant chip detection init script, which is only partially correct. Some excluded chips would have wanted b43.
Attachments
remove_ssb_at_start.pet
(609 Bytes) Downloaded 233 times

smil99
Posts: 174
Joined: Sat 18 Aug 2007, 22:12

#585 Post by smil99 »

Hi tony and all,
Pardon my ignorance but if wl wifi is the same as iwlwifi, then as per Marv's:
If wireless is intel iwlwifi, to get wlan0, you have to modprobe iwldvm and mac80211. I place them in the modules line in /etc/rc.conf.
This has been confirmed by scooby to work on page 38 of this thread. So the drivers seem to be already present. Just a matter of automating the modprobe process.
Hope this helps.
Cheers.
[b][color=green]Success is never ending. ... Failure is never final![/color][/b]
[size=75][i](Used with kind permission from jejy69)[/i][/size]

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#586 Post by pemasu »

Post Posted: Sat 29 Jun 2013, 15:18 Subject:
Forum: Advanced Topics » Puppy Projects
Hi simargl,

do you have customized kernel sources for OS8?

I want to try building a driver for my bcm4313.

Regards tony.

tony
Posts: 334
Joined: Sat 14 Jan 2006, 10:52
Location: Montreal.ca

#587 Post by tony »

Thanks pemasu.

I removed modules b43, ssb and bcma with rmmod. Added lib80211 with modprobe.

Expanded wl.ko.gz and put it into /lib/modules/3.9.6-ALPHAOS/kernel/drivers/net

Couldn't modprobe it, so used insmod wl.ko from a terminal in the above, where wl.ko was.

Then saw my router signal in pwireless2 for the first time and connected.

Will now have to do that automaticall at boot.

Thanks again, regards to all. Tony.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#588 Post by pemasu »

Tony. Great to hear that it worked.
Regarding modprobe. Running in console: depmod
would have helped. It checks new modules and creates the text files of existing modules. Puppies run depmod in every boot, Simargl knows if alphaOS do that also. I suppose so.

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#589 Post by Ghost Dog »

Personally I haven't had much luck with Frisbee. I always thought it sucked hard.

l like Barry's Simple Network Setup. It's simple to use and it just works.

Please, can we have it?

Quickpet would be cool on this distro, because noobs who aren't comfortable with Pacman could then download basic packages. On that note -

l want pet packages. I want the ability to run pburn and other community developed packages.

Congratulations on this interesting distro. :)

Edit: Maybe you should install FlSynclient for the laptop users, also.
Last edited by Ghost Dog on Sun 28 Jul 2013, 08:47, edited 1 time in total.
The Way of the Samurai

simargl

#590 Post by simargl »

pemasu wrote:Running in console: depmod
would have helped. It checks new modules and creates the text files of existing modules. Puppies run depmod in every boot, Simargl knows if alphaOS do that also. I suppose so.
Before initrd.gz is compressed there is a function in build script that runs depmod for modules in there, for kernel package depmod is executed automatically with make install before compressing package. You can change that, but now, on boot depmod will run only if this file is missing /lib/modules/${KERNVER}/modules.dep.
Ghost Dog wrote:I want the ability to run pburn and other community developed packages.
You can install pburn from the AUR:: packer -S pburn
https://aur.archlinux.org/packages/pburn/

tony, here is PKGBUILD from Arch User Repository to make package for missing wl.ko driver https://aur.archlinux.org/packages/br/broadcom-wl. I've tried to compile it, but there is some error (maybe missing patch). Some lines in PKGBUILD are changed because in Arch modules are installed to /usr/lib/modules

Code: Select all

--- broadcom-wl.orig/PKGBUILD	2013-07-05 20:05:39.000000000 +0200
+++ broadcom-wl/PKGBUILD	2013-07-28 08:36:00.706621535 +0200
@@ -9,8 +9,8 @@
 url='http://www.broadcom.com/support/802.11/linux_sta.php'
 arch=('i686' 'x86_64')
 license=('custom')
-depends=('linux>=3.10')
-makedepends=('linux-headers>=3.10')
+depends=('linux>=3.9')
+makedepends=('linux-headers>=3.9')
 
 [[ $CARCH = x86_64 ]] && ARCH=x86_64 || ARCH=x86_32
 source=("http://www.broadcom.com/docs/linux_sta/hybrid-portsrc_${ARCH}-v${pkgver//./_}.tar.gz"
@@ -26,8 +26,8 @@
 backup=('etc/modprobe.d/broadcom-wl.conf')
 install=install
 
-_extramodules=extramodules-3.10-ARCH
-_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+_extramodules="3.9.6-ALPHAOS/kernel/net/wireless"
+_kernver="3.9.6-ALPHAOS"
 
 build() {
 	cd "${srcdir}"
@@ -35,14 +35,14 @@
 	patch -p1 -i linux-recent.patch
 	patch -p1 -i license.patch
 
-	make -C /usr/lib/modules/"${_kernver}"/build M=`pwd`
+	make
 }
 
 package() {
 	cd "${srcdir}"
 
-	install -D -m 644 wl.ko "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
-	gzip "${pkgdir}/usr/lib/modules/${_extramodules}/wl.ko"
+	install -D -m 644 wl.ko "${pkgdir}/lib/modules/${_extramodules}/wl.ko"
+	gzip "${pkgdir}/lib/modules/${_extramodules}/wl.ko"
 
 	install -D -m 644 lib/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 	install -D -m 644 modprobe.d "${pkgdir}"/etc/modprobe.d/broadcom-wl.conf

Code: Select all

[root@alphaos broadcom-wl]# makepkg --asroot
==> Making package: broadcom-wl 5.100.82.112-13 (Sun Jul 28 08:37:33 CEST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found hybrid-portsrc_x86_32-v5_100_82_112.tar.gz
  -> Found modprobe.d
  -> Found license.patch
  -> Found linux-recent.patch
==> Validating source files with sha1sums...
    hybrid-portsrc_x86_32-v5_100_82_112.tar.gz ... Passed
    modprobe.d ... Passed
    license.patch ... Passed
    linux-recent.patch ... Passed
==> Extracting sources...
  -> Extracting hybrid-portsrc_x86_32-v5_100_82_112.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
patching file Makefile
patching file src/include/bcmutils.h
patching file src/wl/sys/wl_cfg80211.c
patching file src/wl/sys/wl_iw.h
patching file src/wl/sys/wl_linux.c
patching file src/wl/sys/wl_linux.c
Hunk #1 succeeded at 244 (offset 4 lines).
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-3.9.6'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  CC [M]  /initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/shared/linux_osl.o
  CC [M]  /initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/wl/sys/wl_linux.o
/initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/wl/sys/wl_linux.c: In function 'wl_proc_open':
/initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/wl/sys/wl_linux.c:3166:2: error: implicit declaration of function 'PDE_DATA' [-Werror=implicit-function-declaration]
  return single_open(file, wl_proc_read, PDE_DATA(inode));
  ^
/initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/wl/sys/wl_linux.c:3166:2: warning: passing argument 3 of 'single_open' makes pointer from integer without a cast [enabled by default]
In file included from include/linux/seq_file_net.h:4:0,
                 from include/net/net_namespace.h:129,
                 from include/linux/netdevice.h:43,
                 from /initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/include/linuxver.h:60,
                 from /initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/wl/sys/wl_linux.c:21:
include/linux/seq_file.h:125:5: note: expected 'void *' but argument is of type 'int'
 int single_open(struct file *, int (*)(struct seq_file *, void *), void *);
     ^
cc1: some warnings being treated as errors
make[2]: *** [/initrd/mnt/dev_save/data/Downloads/broadcom-wl/src/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/initrd/mnt/dev_save/data/Downloads/broadcom-wl/src] Error 2
make[1]: Leaving directory `/usr/src/linux-3.9.6'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#591 Post by Scooby »

Scooby wrote:Is there a way to add a menuitem to spadefm desktop-menu that opens the original
AlphaOS menu, The one I get when I right-click Tint2 panel?
Found out how to do it

https://wiki.archlinux.org/index.php/Openbox#Linking_the_menu_to_a_button

User avatar
Ghost Dog
Posts: 163
Joined: Fri 27 Jan 2012, 04:29

#592 Post by Ghost Dog »

Srsly, this pwireless is totally lame. And frisbee won't be much better.

So how can I use Barry's Simple Network Setup?
The Way of the Samurai

simargl

#593 Post by simargl »

Ghost Dog wrote:Srsly, this pwireless is totally lame. And frisbee won't be much better.

So how can I use Barry's Simple Network Setup?
I don't know is it possible to get that program to work here, actually goal is to have something that is functional and after network connection is established you can install anything you like.

After I send them mail about new name, here is alphaos page at Softpedia
http://linux.softpedia.com/get/System/O ... 6404.shtml
.. notice that archpup is still in page link ..

http://linux.softpedia.com/progScreensh ... 96404.html
Anyone remember those screen shots? And famous snowflake wallpaper, still it's the best I've even seen...

Download count on that page for alphaOS says 1.500.
http://linux.softpedia.com/get/System/O ... ributions/
For comparison
Puppy Precise 8.437
Pear Linux 27,792
PCLinuxOS 72,640

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#594 Post by Scooby »

simargl wrote: http://linux.softpedia.com/progScreensh ... 96404.html
Anyone remember those screen shots? And famous snowflake wallpaper, still it's the best I've even seen...
Sure I remember, I was on snowflake for a long time, was that Archpup12.2.2?

You can see Thunar Icon- I miss it. It had a blissful user-experience somehow, sorry it was crappy in some other respects.

simargl

#595 Post by simargl »

Yes, thunar had that gentle touch with mouse wheel resize icons or add bookmarks with drag and drop, it is still good file manager.

I started making new version, interesting is that harfbuzz package https://www.archlinux.org/packages/extra/i686/harfbuzz/ in Arch is now split to harfbuzz and harfbuzz-icu. Now Gtk2 and Gtk3 applications are free from dependency of icu, without need to recompile harfbuzz like in previous versions.

aufs-util refused to compile with error
aufs-util for aufs3.0 and later, but aufs is 3.10-20130722.
so I had to fix it with this

Code: Select all

sed -i 's|return -1|return 0|g' ver.c

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#596 Post by Scooby »

simargl wrote: I started making new version ...

Looking forward to next version :D

I filled up my save file pretty quick. Is there some tool to view installed package
and there storage size?

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#597 Post by pemasu »

interesting is that harfbuzz package https://www.archlinux.org/packages/extra/i686/harfbuzz/ in Arch is now split to harfbuzz and harfbuzz-icu.
The developer of harfbuzz got request of libiculess harfbuzz choice. Now ./configure has choice for it.

I compiled harfbuzz libiculess and now I have libiculess Upup Raring.
There arent many apps which need libicu or you can compile them libiculess. Libicu is just unneeded weight in distro, mostly.

simargl

#598 Post by simargl »

alphaOS 9.0 has been released!

See 'Latest News' section http://alphaos.tuxfamily.org/
Downloads https://sourceforge.net/projects/alphaos/files

simargl

#599 Post by simargl »

Testing Wayland GTK+ backend
https://wiki.gnome.org/Wayland/GTK+

Image

Image

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#600 Post by Scooby »

simargl wrote:alphaOS 9.0 has been released
Tested new AlphaOS 9 real quick

Using save file from AlphaOS8.

Resolution was way low and in 4:3 format(got a 16:9 screen)
Does this mean graphic card driver not loaded correctly?
I don know how to change resolution in linux, never done it before actually.

When trying to access applications submenu I got a pipe-error message.
I know this is not so informative but I will supply better info when I got time.


Despite seeing iwldm and mac??? modules loading during startup wlan0 interface not accessible.

Real quick test as I said. Maybe should try without AlphaOS8 savefile.

Post Reply