Official Gitbrew Forums
These forums cover all aspects of the Gitbrew biosphere. If you would like your development project to be based here, ask an admin.

Home » PS3 » OtherOS++ » Linux » Linux kernel 3.2.2 and PHAT WLAN
Linux kernel 3.2.2 and PHAT WLAN [message #483] Tue, 31 January 2012 22:09 Go to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
First you need repo node patches from OtherOS++, without it, it won't work.

Here are Linux kernel patches:

http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/lv1cal l-repo-node-lparid-param.patch
http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/gelic- disable-eurus-ctrl-iface.patch

Here are OpenWRT patches:

http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 08-lv1call-repo-node-lparid-param.patch
http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 09-gelic-disable-eurus-ctrl-iface.patch

Make sure you enable gelic WLAN in Linux kernel config.

[Updated on: Tue, 31 January 2012 22:16]

Report message to a moderator

Re: Linux kernel 3.2.2 and PHAT WLAN [message #484 is a reply to message #483] Tue, 31 January 2012 22:35 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Download patches again, fixed some bugs, sorry.
Re: Linux kernel 3.2.2 and PHAT WLAN [message #485 is a reply to message #484] Tue, 31 January 2012 22:57 Go to previous messageGo to next message
x_redentor is currently offline  x_redentor
Messages: 138
Registered: January 2012
Location: españa
Gitbrew Assistant
thanks for all the work you are doing.
to mount the latest kernel in Ubuntu 12.04, fails, the same as the 10.04?
Re: Linux kernel 3.2.2 and PHAT WLAN [message #488 is a reply to message #485] Wed, 01 February 2012 18:31 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
This topic is about WLAN on PHAT and not about ubuntu.
Did WLAN work or not ?
Re: Linux kernel 3.2.2 and PHAT WLAN [message #493 is a reply to message #488] Wed, 01 February 2012 19:36 Go to previous messageGo to next message
x_redentor is currently offline  x_redentor
Messages: 138
Registered: January 2012
Location: españa
Gitbrew Assistant
in my case, not having the firmware OtherOS + +
iwlist: we have results! [message #520 is a reply to message #483] Fri, 03 February 2012 11:40 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
glevand wrote on Tue, 31 January 2012 22:09
First you need repo node patches from OtherOS++, without it, it won't work.

Here are OpenWRT patches:

http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 08-lv1call-repo-node-lparid-param.patch
http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 09-gelic-disable-eurus-ctrl-iface.patch

Make sure you enable gelic WLAN in Linux kernel config.
Re: iwlist: we have results! [message #521 is a reply to message #520] Fri, 03 February 2012 11:49 Go to previous messageGo to next message
x_redentor is currently offline  x_redentor
Messages: 138
Registered: January 2012
Location: españa
Gitbrew Assistant
must be installed ps3 firmware OtherOS + +
http://www.ps3devwiki.com/index.php?title=OtherOS%2B%2B#Firm wares
I installed in my case I have DH JFW 3.56 MA, I guess that's why I work in FAT, which is not for SLIM

[Updated on: Fri, 03 February 2012 11:50]

Report message to a moderator

Re: iwlist: we have results! [message #523 is a reply to message #520] Fri, 03 February 2012 16:25 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
masterzorag wrote on Fri, 03 February 2012 10:40
glevand wrote on Tue, 31 January 2012 22:09
First you need repo node patches from OtherOS++, without it, it won't work.

Here are OpenWRT patches:

http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 08-lv1call-repo-node-lparid-param.patch
http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 09-gelic-disable-eurus-ctrl-iface.patch

Make sure you enable gelic WLAN in Linux kernel config.


I see the following lines:

[    4.031790] ps3_gelic_driver sb_04: ps3_gelic_driver_probe: eurus control interface is enabled
[    4.037334] ps3_gelic_driver sb_04: ps3_gelic_driver_probe: eurus control interface was disabled


which means my patches worked and eurus control interface was disabled.
Does WLAN work now ?

Hmm, but then i see these messages:

159.580358] gelic_eurus_sync_cmd_worker: cmd issue failed
[  181.360326] gelic_eurus_sync_cmd_worker: cmd issue failed
[  382.677260] gelic_eurus_sync_cmd_worker: cmd issue failed

[Updated on: Fri, 03 February 2012 16:27]

Report message to a moderator

Re: iwlist: we have results! [message #524 is a reply to message #523] Fri, 03 February 2012 16:30 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
We need another patch to gelic to see what error is returned by LV1 here:
gelic_eurus_sync_cmd_worker: cmd issue failed.

Let me create it.
Re: iwlist: we have results! [message #527 is a reply to message #524] Fri, 03 February 2012 16:47 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Here is the new patch: http://gitbrew.org/~glevand/ps3/linux/openwrt/patches-3.2/00 10-gelic-wireless-print-cmd-status.patch
Re: iwlist: we have results! [message #528 is a reply to message #527] Fri, 03 February 2012 17:47 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
I've runned
# iwlist s
and I've see the results, seems to work
anyway, I'm appling the new patch

another one: have select ps3flash in config-kernel:
CC drivers/char/ps3flash.o
drivers/char/ps3flash.c: In function 'ps3flash_read_write_sectors':
drivers/char/ps3flash.c:51:11: error: too few arguments to function 'ps3stor_read_write_sectors'
/openwrt-dev/build_dir/linux-ps3_petitboot/linux-3.2.2/arch/ powerpc/include/asm/ps3stor.h:65:12: note: declared here
drivers/char/ps3flash.c: In function 'ps3flash_llseek':
drivers/char/ps3flash.c:111:29: error: 'struct ps3_storage_device' has no member named 'region_idx'
drivers/char/ps3flash.c: In function 'ps3flash_read':
drivers/char/ps3flash.c:143:25: error: 'struct ps3_storage_device' has no member named 'region_idx'
drivers/char/ps3flash.c: In function 'ps3flash_write':
drivers/char/ps3flash.c:212:25: error: 'struct ps3_storage_device' has no member named 'region_idx'
drivers/char/ps3flash.c: In function 'ps3flash_probe':
drivers/char/ps3flash.c:373:24: error: 'struct ps3_storage_device' has no member named 'region_idx'
drivers/char/ps3flash.c:380:24: error: 'struct ps3_storage_device' has no member named 'region_idx'
make[7]: *** [drivers/char/ps3flash.o] Error 1
make[6]: *** [drivers/char] Error 2
make[5]: *** [drivers] Error 2
exits
Re: iwlist: we have results! [message #529 is a reply to message #528] Fri, 03 February 2012 17:55 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Don't use the old ps3flash. Select my driver in OpenWRT menuconfig -> Kernel Modules -> Block Devices.
You selected the old one.

Deselect the old one in kernel_menuconfig.

 OpenWrt Attitude Adjustment (r29906) Configuration
 ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  ┌─────────────────────────────────────────────── Block Devices ───────────────────────────────────────────────┐
  │  Arrow keys navigate the menu.  <Enter> selects submenus --->.  Highlighted letters are hotkeys.  Pressing  │
  │  <Y> includes, <N> excludes, <M> builds as package.  Press <Esc><Esc> to exit, <?> for Help, </> for        │
  │  Search.  Legend: [*] built-in  [ ] excluded  <M> package  < > package capable                              │
  │                                                                                                             │
  │ ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │
  │ │ < > kmod-aoe....................................... ATA over Ethernet support                           │ │
  │ │ < > kmod-ata-core............................ Serial and Parallel ATA support                           │ │
  │ │ < > kmod-block2mtd................................ Block device MTD emulation                           │ │
  │ │ < > kmod-dm.................................................... Device Mapper                           │ │
  │ │ < > kmod-ide-core............................. IDE (ATA/ATAPI) device support                           │ │
  │ │ < > kmod-loop........................................ Loopback device support                           │ │
  │ │ < > kmod-md-mod...................................................... MD RAID                           │ │
  │ │ < > kmod-nbd.................................... Network block device support                           │ │
  │ │ <*> kmod-ps3flash................................... PS3 Flash Storage Driver                           │ │
  │ │ <*> kmod-ps3nflash.............................. PS3 NOR Flash Storage Driver                           │ │
  │ │ < > kmod-ps3vram................................ PS3 Video RAM Storage Driver                           │ │
  │ │ < > kmod-scsi-cdrom....................... Kernel support for CD / DVD drives                           │ │
  │ │ --- kmod-scsi-core....................................... SCSI device support                           │ │
  │ │ < > kmod-scsi-generic........................ Kernel support for SCSI generic                           │ │
  │ │                                                                                                         │ │
  │ │                                                                                                         │ │
  │ │                                                                                                         │ │
  │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────┘ │
  ├─────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
  │                                      <Select>    < Exit >    < Help >                                       │
  └─────────────────────────────────────────────────────────────────────────────────────────────────────────────┘


[Updated on: Fri, 03 February 2012 17:57]

Report message to a moderator

Re: iwlist: we have results! [message #530 is a reply to message #529] Fri, 03 February 2012 18:00 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
If you do it right then you will see this:

root@ps3-linux:/# ls -l /dev/ps3flash*
lrwxrwxrwx    1 root     root             9 Feb  3 16:59 /dev/ps3flash -> ps3flashf
brw-------    1 root     root      253,   0 Feb  3 16:59 /dev/ps3flasha
brw-------    1 root     root      253,  16 Feb  3 16:59 /dev/ps3flashb
brw-------    1 root     root      253,  32 Feb  3 16:59 /dev/ps3flashc
brw-------    1 root     root      253,  48 Feb  3 16:59 /dev/ps3flashd
brw-------    1 root     root      253,  64 Feb  3 16:59 /dev/ps3flashe
brw-------    1 root     root      253,  80 Feb  3 16:59 /dev/ps3flashf
brw-------    1 root     root      253,  96 Feb  3 16:59 /dev/ps3flashg
root@ps3-linux:/#


And this:
root@ps3-linux:/# lsmod
Module                  Size  Used by    Not tainted
...
ps3nflash               7188  0
ps3flash                8020  3
...
root@ps3-linux:/#


dmesg should show you this:

 ps3flash sb_04: VFLASH is off

because you have NAND.

[Updated on: Fri, 03 February 2012 18:03]

Report message to a moderator

Re: iwlist: we have results! [message #533 is a reply to message #530] Fri, 03 February 2012 18:08 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
I've updated OpenWRT via svn update
./scripts/feeds update -a
./scripts/feeds install -a

no more kmod-ps3flash and kmod-ps3nflash!
issue after reboot... no control:
no keyboard -> telnet
no lan, no telnet
Re: iwlist: we have results! [message #535 is a reply to message #533] Fri, 03 February 2012 18:10 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
modules.mk patch applied ?
Follow my HOWTO.
Re: iwlist: we have results! [message #536 is a reply to message #535] Fri, 03 February 2012 18:13 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
And never flash a petitboot image without testing it first with a working petitboot and kexec at runtime, like this:

kexec -l openwrt-ps3-petitboot-vmlinux.elf
kexec -e


The ELF-image is here: build_dir/target-powerpc_uClibc-0.9.32/root-ps3

I always test my images first and then flash it.

[Updated on: Fri, 03 February 2012 18:14]

Report message to a moderator

Re: iwlist: we have results! [message #537 is a reply to message #536] Fri, 03 February 2012 19:02 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
OpenWRT at revision 30018.
Does patchset work? You are at r29906! can you check?
If so I should redo everything from the beginning... soo long
What can I check? ps3lan and ps3vram are there!
Re: iwlist: we have results! [message #538 is a reply to message #537] Fri, 03 February 2012 19:09 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Try this:

touch package/kernel/Makefile
make menuconfig


and check if you see ps3flash and ps3nflash modules now.

[Updated on: Fri, 03 February 2012 19:45]

Report message to a moderator

Re: iwlist: we have results! [message #599 is a reply to message #538] Mon, 06 February 2012 16:31 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
ok, got it to run!
I've 3.2.2 with all your patch set, even ps3_vuart_tools

gelic_eurus_sync_cmd_worker: cmd issue failed (-6)
is returned on dmesg every time I call iwconfig w/o args

iwlist s gives me results!
trying to associate with wpa... wext not supported

[Updated on: Mon, 06 February 2012 17:01]

Report message to a moderator

Re: iwlist: we have results! [message #602 is a reply to message #599] Mon, 06 February 2012 18:24 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Ok, let's see why WLAN doesn't work yet.
-6 means LV1_NO_ENTRY.

[Updated on: Mon, 06 February 2012 18:30]

Report message to a moderator

Re: iwlist: we have results! [message #604 is a reply to message #602] Mon, 06 February 2012 18:26 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Ah, i see you have a nand Smile

ps3flash sb_01: VFLASH is off
Re: iwlist: we have results! [message #605 is a reply to message #604] Mon, 06 February 2012 18:27 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
How did you associate with your AP, with wpa_supplicant ?
Re: iwlist: we have results! [message #606 is a reply to message #605] Mon, 06 February 2012 18:33 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
The fact that you can scan and see results means that EURUS control interface was disabled properly and WLAN works actually.
Re: iwlist: we have results! [message #607 is a reply to message #605] Mon, 06 February 2012 22:13 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
glevand wrote on Mon, 06 February 2012 18:27
How did you associate with your AP, with wpa_supplicant ?

gotten wlan0 works with wpa_supplicant on fedora in the past, now I'm wired
wpa ap with wpa_supplicant, however
Re: iwlist: we have results! [message #609 is a reply to message #607] Tue, 07 February 2012 18:33 Go to previous message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I'm using wpa_supplicant on petitboot with slim WLAN and it works fine. It's WEXT interface too. Openwrt's network config doesn't work with WEXT yet but using wpa_supplicant directly works fine.

[Updated on: Tue, 07 February 2012 18:34]

Report message to a moderator

Previous Topic: Linux Kernelp 3.2.2 and kexec problems
Next Topic: [Petitboot] system going down
Goto Forum:
  


Current Time: Wed Jun 19 07:33:39 CEST 2013

Total time taken to generate the page: 0.02442 seconds