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 » petitboot compiler
Re: petitboot compiler [message #771 is a reply to message #770] Mon, 05 March 2012 20:35 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Post lsmod output on your petitboot.
Re: petitboot compiler [message #772 is a reply to message #771] Mon, 05 March 2012 21:05 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Tried with your config, Still no go. The keyboard won't even power on it seems when in petitboot. It has lights for numlock etc which do not turn on. The Keyboard works fine in gameos. And in your petitboot. I also tried another usb keyboard. It's not working either.
Re: petitboot compiler [message #773 is a reply to message #772] Mon, 05 March 2012 21:06 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
How do you propose I do lsmod without a working keyboard? I cannot even select option "Exit to Shell"

Generating index for package ./kmod-hid_3.2.2-1_ps3.ipk
Generating index for package ./kmod-input-core_3.2.2-1_ps3.ipk
Generating index for package ./kmod-input-evdev_3.2.2-1_ps3.ipk
Generating index for package ./kmod-nls-base_3.2.2-1_ps3.ipk
Generating index for package ./kmod-scsi-core_3.2.2-1_ps3.ipk
Generating index for package ./kmod-usb-core_3.2.2-1_ps3.ipk
Generating index for package ./kmod-usb-hid_3.2.2-1_ps3.ipk
Generating index for package ./kmod-usb-ohci_3.2.2-1_ps3.ipk
Generating index for package ./kmod-usb-storage-extras_3.2.2-1_ps3.ipk
Generating index for package ./kmod-usb-storage_3.2.2-1_ps3.ipk
Generating index for package ./kmod-usb2_3.2.2-1_ps3.ipk


There's the index of kmods it used for compiling.

[Updated on: Mon, 05 March 2012 21:10]

Report message to a moderator

Re: petitboot compiler [message #774 is a reply to message #773] Mon, 05 March 2012 21:23 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
ls -l build_dir/target-powerpc_uClibc-0.9.33/root-ps3/lib/modules/3.2.9/
Re: petitboot compiler [message #775 is a reply to message #774] Mon, 05 March 2012 21:29 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
nikitis@collins ~/Source/openwrt-dev $ ls -l build_dir/target-powerpc_uClibc-0.9.33/root-ps3/lib/modules/ 3.2.2/
total 768
-rw-r--r-- 1 nikitis nikitis 62088 2012-03-05 15:01 ehci-hcd.ko
-rw-r--r-- 1 nikitis nikitis 125392 2012-03-05 15:01 hid.ko
-rw-r--r-- 1 nikitis nikitis 32896 2012-03-05 15:01 ohci-hcd.ko
-rw-r--r-- 1 nikitis nikitis 17048 2012-03-05 15:01 ums-alauda.ko
-rw-r--r-- 1 nikitis nikitis 8280 2012-03-05 15:01 ums-cypress.ko
-rw-r--r-- 1 nikitis nikitis 13656 2012-03-05 15:01 ums-datafab.ko
-rw-r--r-- 1 nikitis nikitis 8144 2012-03-05 15:01 ums-freecom.ko
-rw-r--r-- 1 nikitis nikitis 12600 2012-03-05 15:01 ums-isd200.ko
-rw-r--r-- 1 nikitis nikitis 11392 2012-03-05 15:01 ums-jumpshot.ko
-rw-r--r-- 1 nikitis nikitis 8008 2012-03-05 15:01 ums-karma.ko
-rw-r--r-- 1 nikitis nikitis 19848 2012-03-05 15:01 ums-sddr09.ko
-rw-r--r-- 1 nikitis nikitis 12728 2012-03-05 15:01 ums-sddr55.ko
-rw-r--r-- 1 nikitis nikitis 18808 2012-03-05 15:01 ums-usbat.ko
-rw-r--r-- 1 nikitis nikitis 3832 2012-03-05 15:01 usb-common.ko
-rw-r--r-- 1 nikitis nikitis 244808 2012-03-05 15:01 usbcore.ko
-rw-r--r-- 1 nikitis nikitis 50944 2012-03-05 15:01 usbhid.ko
-rw-r--r-- 1 nikitis nikitis 102144 2012-03-05 15:01 usb-storage.ko
nikitis@collins ~/Source/openwrt-dev $
Re: petitboot compiler [message #776 is a reply to message #775] Mon, 05 March 2012 21:31 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
looks good, hmm


That's my list

-rw-r--r-- 1 glevand users  62504 Mar  2 19:08 ehci-hcd.ko
-rw-r--r-- 1 glevand users 126176 Mar  2 19:08 hid.ko
-rw-r--r-- 1 glevand users  33824 Mar  2 19:08 ohci-hcd.ko
-rw-r--r-- 1 glevand users   9032 Mar  2 19:08 ps3-disp-manager.ko
-rw-r--r-- 1 glevand users  21728 Mar  2 19:08 ps3_jupiter.ko
-rw-r--r-- 1 glevand users  41520 Mar  2 19:08 ps3_jupiter_sta.ko
-rw-r--r-- 1 glevand users  15424 Mar  2 19:08 ps3flash.ko
-rw-r--r-- 1 glevand users  14200 Mar  2 19:08 ps3nflash.ko
-rw-r--r-- 1 glevand users   9232 Mar  2 19:08 ps3physmem.ko
-rw-r--r-- 1 glevand users   9168 Mar  2 19:08 ps3strgmngr.ko
-rw-r--r-- 1 glevand users  18104 Mar  2 19:08 ums-alauda.ko
-rw-r--r-- 1 glevand users   9432 Mar  2 19:08 ums-cypress.ko
-rw-r--r-- 1 glevand users  14712 Mar  2 19:08 ums-datafab.ko
-rw-r--r-- 1 glevand users   9352 Mar  2 19:08 ums-freecom.ko
-rw-r--r-- 1 glevand users  13784 Mar  2 19:08 ums-isd200.ko
-rw-r--r-- 1 glevand users  12512 Mar  2 19:08 ums-jumpshot.ko
-rw-r--r-- 1 glevand users   9264 Mar  2 19:08 ums-karma.ko
-rw-r--r-- 1 glevand users  21008 Mar  2 19:08 ums-sddr09.ko
-rw-r--r-- 1 glevand users  13896 Mar  2 19:08 ums-sddr55.ko
-rw-r--r-- 1 glevand users  19784 Mar  2 19:08 ums-usbat.ko
-rw-r--r-- 1 glevand users   5024 Mar  2 19:08 usb-common.ko
-rw-r--r-- 1 glevand users 102832 Mar  2 19:08 usb-storage.ko
-rw-r--r-- 1 glevand users 245856 Mar  2 19:08 usbcore.ko
-rw-r--r-- 1 glevand users  51920 Mar  2 19:08 usbhid.ko
Re: petitboot compiler [message #777 is a reply to message #776] Mon, 05 March 2012 21:34 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Why is mine missing:

-rw-r--r-- 1 glevand users 9032 Mar 2 19:08 ps3-disp-manager.ko
-rw-r--r-- 1 glevand users 21728 Mar 2 19:08 ps3_jupiter.ko
-rw-r--r-- 1 glevand users 41520 Mar 2 19:08 ps3_jupiter_sta.ko
-rw-r--r-- 1 glevand users 15424 Mar 2 19:08 ps3flash.ko
-rw-r--r-- 1 glevand users 14200 Mar 2 19:08 ps3nflash.ko
-rw-r--r-- 1 glevand users 9232 Mar 2 19:08 ps3physmem.ko
-rw-r--r-- 1 glevand users 9168 Mar 2 19:08 ps3strgmngr.ko
Re: petitboot compiler [message #779 is a reply to message #777] Mon, 05 March 2012 21:37 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Enable it.

make menuconfig -> Kernel modules -> Block devices
                                  -> Other modules
                                  -> Wireless drivers
Re: petitboot compiler [message #780 is a reply to message #779] Mon, 05 March 2012 22:12 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
I really don't understand what is happening here. I can't find half of those options in menuconfig. Only one was for ps3vram. Wireless Drivers had no such Jupiter option. Something is obviously wrong. I am going to try again but compile from 3.2.9 instead of 3.2.2.
Re: petitboot compiler [message #781 is a reply to message #780] Mon, 05 March 2012 22:16 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Read my HOWTO first. Did you copy patches ?

Linux 3.2.
------------

cd openwrt-dev
cp -r ~/patches-3.2 target/linux/ps3
cp linux-config-3.2.9 target/linux/ps3/config-3.2
patch -p0 < ~/linux-version-3.2.9.patch
patch -p0 < ~/modules.mk.patch


If you did it then try to remove build_dir/linux-ps3_petitboot and compile again.

[Updated on: Mon, 05 March 2012 22:17]

Report message to a moderator

Re: petitboot compiler [message #782 is a reply to message #781] Mon, 05 March 2012 22:21 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
If you will have problems with ps3sed package missing ps3strgmngr.h then just copy

build_dir/linux-ps3_petitboot/linux-3.2.9/arch/powerpc/inclu de/asm/ps3strgmngr.h

to

staging_dir/toolchain-powerpc_gcc-4.6-linaro_uClibc-0.9.33/i nclude/asm/ps3strgmngr.h
Re: petitboot compiler [message #783 is a reply to message #782] Mon, 05 March 2012 22:24 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I updated HOWTO

http://gitbrew.org/~glevand/ps3/linux/openwrt/HOWTO
Re: petitboot compiler [message #784 is a reply to message #781] Mon, 05 March 2012 22:42 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
When applying patches i had these problems.

nikitis@collins ~/Source/openwrt-dev $ patch -p0 < ps3-utils-git.patch
patching file package/ps3-utils/Makefile
nikitis@collins ~/Source/openwrt-dev $ patch -p0 < kexec-version-2.0.3.patch
patching file package/kexec-tools/Makefile
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file package/kexec-tools/Makefile.rej
nikitis@collins ~/Source/openwrt-dev $ patch -p0 < kbd-package.patch
patching file package/kbd/Makefile
nikitis@collins ~/Source/openwrt-dev $ patch -p0 < ps3vuart-tools-package.patch
patching file package/ps3vuart-tools/Makefile
nikitis@collins ~/Source/openwrt-dev $ patch -p0 < ps3sed-package.patch
patching file package/ps3sed/Makefile
nikitis@collins ~/Source/openwrt-dev $ patch -p0 < sg3-utils.patch
patching file package/feeds/packages/sg3-utils/Makefile
nikitis@collins ~/Source/openwrt-dev $ patch -p0 < debootstrap-1.0.38.patch
patching file package/feeds/packages/debootstrap/Makefile
Reversed (or previously applied) patch detected! Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file package/feeds/packages/debootstrap/Makefile.rej
nikitis@collins ~/Source/openwrt-dev $


I selected 'n' for both questions on kexec and debootstrap. Is this the correct answers?
Re: petitboot compiler [message #785 is a reply to message #784] Mon, 05 March 2012 22:46 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Hmm, i didn't update packages for some time, maybe they updated those packages.
Just check which versions they use now.
Re: petitboot compiler [message #786 is a reply to message #785] Mon, 05 March 2012 22:48 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
debootstrap was updated to 1.0.38 so you don'Ät have to patch it anymore.
Re: petitboot compiler [message #787 is a reply to message #786] Mon, 05 March 2012 22:49 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
kexec was updated to 2.0.3. So don't patch it too. I will update my HOWTO.
Re: petitboot compiler [message #788 is a reply to message #787] Mon, 05 March 2012 22:53 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I think OpenWRT's debootstrap 1.0.38 is still not OK.
It doesn't copy devices file e.g. which is necessary.
Have to create a new patch.
Re: petitboot compiler [message #789 is a reply to message #788] Mon, 05 March 2012 23:02 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Also on the howto where it says:

cd openwrt-dev
cp -r ~/patches-3.2 target/linux/ps3
cp linux-config-3.2 target/linux/ps3/config-3.2
patch -p0 < ~/linux-version-3.2.2.patch
patch -p0 < ~/modules.mk.patch

If I'm doing 3.2.9, do I rename cp linux-config-3.2.9 to target/linux/ps3/config-3.2.9 ?

Same questions go to patches-3.2. Do i name the dir to patches-3.2.9?
Re: petitboot compiler [message #790 is a reply to message #789] Tue, 06 March 2012 00:29 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
I also noticed a difference in config vs config-huge.

config:
# CONFIG_BUSYBOX_CONFIG_DUMPKMAP is not set

config-huge:
CONFIG_BUSYBOX_CONFIG_DUMPKMAP=y
CONFIG_PACKAGE_kbd=y
CONFIG_PACKAGE_kbd-console-fonts=y
CONFIG_PACKAGE_kbd-console-maps=y

Would any of these be affecting my keyboard?

I used config-huge on my last config.
Re: petitboot compiler [message #791 is a reply to message #790] Tue, 06 March 2012 02:12 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
When trying to compile with 3.2.9. I got this at the end.

make[5]: Leaving directory `/home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_peti tboot/linux-3.2.9'
powerpc-openwrt-linux-uclibc-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/linux-3.2.9/vmlinux /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/vmlinux
powerpc-openwrt-linux-uclibc-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/linux-3.2.9/vmlinux /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/vmlinux.elf
touch /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/linux-3.2.9/.image
make -C image compile install TARGET_BUILD=
make[5]: Entering directory `/home/nikitis/Source/openwrt-dev-1/target/linux/ps3/image'
make[5]: `compile' is up to date.
cp /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/linux-3.2.9/arch/powerpc/boot/otheros.bld /home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_petit boot/image
cp: cannot stat `/home/nikitis/Source/openwrt-dev-1/build_dir/linux-ps3_peti tboot/linux-3.2.9/arch/powerpc/boot/otheros.bld': No such file or directory
make[5]: *** [install] Error 1
make[5]: Leaving directory `/home/nikitis/Source/openwrt-dev-1/target/linux/ps3/image'
make[4]: *** [install] Error 2
make[4]: Leaving directory `/home/nikitis/Source/openwrt-dev-1/target/linux/ps3'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/nikitis/Source/openwrt-dev-1/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/nikitis/Source/openwrt-dev-1'
make[1]: *** [/home/nikitis/Source/openwrt-dev-1/staging_dir/target-power pc_uClibc-0.9.33/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/nikitis/Source/openwrt-dev-1'
make: *** [world] Error 2
nikitis@collins ~/Source/openwrt-dev-1 $
Re: petitboot compiler [message #796 is a reply to message #791] Tue, 06 March 2012 18:23 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
KBD is a full keyboard support package which you don't need, i don't use it anymore.
I used it once on petitboot and converted some keyboard maps to busybox kmap format which you find in my dir.
Now i'm using only kmaps and loadkmap from busybox and it works fine.
Re: petitboot compiler [message #797 is a reply to message #773] Tue, 06 March 2012 20:24 Go to previous messageGo to next message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
nikitis wrote on Mon, 05 March 2012 21:06
How do you propose I do lsmod without a working keyboard? I cannot even select option "Exit to Shell"

enter petitboot from your pc, via telnet, es.
# telnet 192.168.1.2
Re: petitboot compiler [message #798 is a reply to message #789] Tue, 06 March 2012 21:31 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
nikitis wrote on Mon, 05 March 2012 22:02
Also on the howto where it says:

cd openwrt-dev
cp -r ~/patches-3.2 target/linux/ps3
cp linux-config-3.2 target/linux/ps3/config-3.2
patch -p0 < ~/linux-version-3.2.2.patch
patch -p0 < ~/modules.mk.patch

If I'm doing 3.2.9, do I rename cp linux-config-3.2.9 to target/linux/ps3/config-3.2.9 ?

Same questions go to patches-3.2. Do i name the dir to patches-3.2.9?


Just follow my howto exactly.
Patches should be in dir patches-3.2 and not patches-3.2.9.
The same applies for config-3.2 and not config-3.2.9
Re: petitboot compiler [message #799 is a reply to message #798] Wed, 07 March 2012 01:07 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
glevand wrote on Tue, 06 March 2012 15:31
nikitis wrote on Mon, 05 March 2012 22:02
Also on the howto where it says:

cd openwrt-dev
cp -r ~/patches-3.2 target/linux/ps3
cp linux-config-3.2 target/linux/ps3/config-3.2
patch -p0 < ~/linux-version-3.2.2.patch
patch -p0 < ~/modules.mk.patch

If I'm doing 3.2.9, do I rename cp linux-config-3.2.9 to target/linux/ps3/config-3.2.9 ?

Same questions go to patches-3.2. Do i name the dir to patches-3.2.9?


Just follow my howto exactly.
Patches should be in dir patches-3.2 and not patches-3.2.9.
The same applies for config-3.2 and not config-3.2.9


Yeah, thanks. I had posted ^ before howto was updated. I'm going to start again from scratch.

Were you able to write a patch for debootstrap yet? I believe you said you still had to patch it because it doesn't select devices or something of that nature.
Re: petitboot compiler [message #804 is a reply to message #799] Thu, 08 March 2012 07:22 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Okay, I completely started from scratch. I recompiled petitboot 3.2.9. I got no errors. Followed instructions to the letter. I flash it to my PS3. It starts up and runs. Keyboard is STILL not working. I have a wireless usb logitech and a generic mini usb keyboard. Neither of them work. Both have worked on my other PS3 in petitboot using your copy glevand.

You said to log in via telnet. I did so, and ran lsmod as root. I so ZERO modules loaded...

root@ps3-linux:~# lsmod
Module Size Used by Not tainted


How is that possible? I ran a default setup with menuconfig and kernel_menuconfig. Could that be why? Anyway, let me know how this is possible and what i can do about it.

Thanks.

If you are curious. I documented my installation in two parts. First part is most of the howto. Last part is whole compile process.

Part 1:
http://www.mediafire.com/?jp639e12e19rog2

Part 2:
http://www.mediafire.com/?o91q2fkabkr2gri

[Updated on: Thu, 08 March 2012 07:36]

Report message to a moderator

Re: petitboot compiler [message #807 is a reply to message #804] Thu, 08 March 2012 19:03 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Hmm, default config does not select USB drivers i think.
Check your root-ps3/lib/modules dir in your build_dir/target..../. Why did you use default configs ? My configs select the necessary USB drivers.

[Updated on: Thu, 08 March 2012 19:07]

Report message to a moderator

Re: petitboot compiler [message #808 is a reply to message #807] Thu, 08 March 2012 22:21 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
~/Source/openwrt-dev/build_dir/target-powerpc_uClibc-0.9.33/ root-ps3/lib/modules/3.2.9 $ ls -la
total 776
drwxr-xr-x 2 anonymous anonymous 4096 2012-03-08 00:52 .
drwxr-xr-x 3 anonymous anonymous 4096 2012-03-08 00:46 ..
-rw-r--r-- 1 anonymous anonymous 62088 2012-03-08 00:46 ehci-hcd.ko
-rw-r--r-- 1 anonymous anonymous 125392 2012-03-08 00:46 hid.ko
-rw-r--r-- 1 anonymous anonymous 32904 2012-03-08 00:46 ohci-hcd.ko
-rw-r--r-- 1 anonymous anonymous 17048 2012-03-08 00:46 ums-alauda.ko
-rw-r--r-- 1 anonymous anonymous 8280 2012-03-08 00:46 ums-cypress.ko
-rw-r--r-- 1 anonymous anonymous 13656 2012-03-08 00:46 ums-datafab.ko
-rw-r--r-- 1 anonymous anonymous 8144 2012-03-08 00:46 ums-freecom.ko
-rw-r--r-- 1 anonymous anonymous 12600 2012-03-08 00:46 ums-isd200.ko
-rw-r--r-- 1 anonymous anonymous 11392 2012-03-08 00:46 ums-jumpshot.ko
-rw-r--r-- 1 anonymous anonymous 8008 2012-03-08 00:46 ums-karma.ko
-rw-r--r-- 1 anonymous anonymous 19848 2012-03-08 00:46 ums-sddr09.ko
-rw-r--r-- 1 anonymous anonymous 12728 2012-03-08 00:46 ums-sddr55.ko
-rw-r--r-- 1 anonymous anonymous 18808 2012-03-08 00:46 ums-usbat.ko
-rw-r--r-- 1 anonymous anonymous 3832 2012-03-08 00:46 usb-common.ko
-rw-r--r-- 1 anonymous anonymous 244848 2012-03-08 00:46 usbcore.ko
-rw-r--r-- 1 anonymous anonymous 50944 2012-03-08 00:46 usbhid.ko
-rw-r--r-- 1 anonymous anonymous 101544 2012-03-08 00:46 usb-storage.ko

[Updated on: Thu, 08 March 2012 22:21]

Report message to a moderator

Re: petitboot compiler [message #809 is a reply to message #284] Fri, 09 March 2012 05:23 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Okay, I went and installed your petitboot again and saw all of these wonderful modules loaded on boot. And my keyboard worked.

root@ps3-linux:/# lsmod
Module Size Used by Not tainted
usbhid 28468 0
hid 78968 1 usbhid
ums_usbat 10316 0
ums_sddr55 7120 0
ums_sddr09 11899 0
ums_karma 3312 0
ums_jumpshot 6040 0
ums_isd200 7744 0
ums_freecom 3688 0
ums_datafab 7104 0
ums_cypress 3728 0
ums_alauda 10840 0
usb_storage 47936 11 ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_i sd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda
ohci_hcd 23268 0
ps3strgmngr 3880 0
ehci_hcd 41188 0
ps3physmem 3192 0
ps3_disp_manager 3368 0
ps3_jupiter_sta 22320 0
ps3_jupiter 11912 1 ps3_jupiter_sta
ps3nflash 7220 0
ps3flash 8052 3
usbcore 130968 16 usbhid,ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpsho t,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda, usb_storage,ohci_hcd,ehci_hcd,ps3_jupiter_sta,ps3_jupiter
usb_common 1056 1 usbcore
root@ps3-linux:/#


Seeing as I have none loaded. Can you add this process to the Howto? Most people do not know how to load modules at boot. I'm going to attempt tonight to see if I can figure it out.

Thanks.
Re: petitboot compiler [message #810 is a reply to message #807] Fri, 09 March 2012 05:55 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
glevand wrote on Thu, 08 March 2012 13:03
Hmm, default config does not select USB drivers i think.
Check your root-ps3/lib/modules dir in your build_dir/target..../. Why did you use default configs ? My configs select the necessary USB drivers.


When I say I used default configs. I meant yours. the usb kernel modules are selected, but i get nothing on lsmod. What is happening here? Do they need to be selected as <M> over <*>? right now they are selected as <*>. Why isn't my build process adding the kernel modules to the image?

Also why are there two dtbImage.ps3 files? One is dtbImage.ps3 and other is dtbImage.ps3.bin. I'm using the .bin if that has something to do with it.

I'm at my wits end with this. Can we setup a SSH session and have you check things out?
Re: petitboot compiler [message #811 is a reply to message #810] Fri, 09 March 2012 07:00 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Glevand. Is it possible that i'm not using the right codebase somewhere? I tried using make V=99 oldconfig and did a diff .config config and got many changes including versions. Could this be my issue? It looks like i'm clearly selecting the kernel modules but they aren't loaded in my images.

< # OpenWrt version: Attitude Adjustment (r30850)
< # Fri Mar 9 00:17:22 2012
---
> # OpenWrt version: Attitude Adjustment (r29906)
> # Tue Jan 31 19:36:06 2012
Re: petitboot compiler [message #812 is a reply to message #811] Fri, 09 March 2012 11:07 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Found the problem. Your linux-config-3.2.9 has tons of things set to be added as package only "=m" and not "=y" I changed all to "y" and all is WORKING!

CONFIG_USB=m
# CONFIG_USB_ARCH_HAS_XHCI is not set
CONFIG_USB_COMMON=m
# CONFIG_USB_DEVICEFS is not set
CONFIG_USB_EHCI_BIG_ENDIAN_MMIO=y
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_ROOT_HUB_TT is not set
CONFIG_USB_HID=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_CDC_NCM=m
# CONFIG_USB_OHCI_BIG_ENDIAN_DESC is not set
CONFIG_USB_OHCI_BIG_ENDIAN_MMIO=y
CONFIG_USB_OHCI_HCD=m
CONFIG_USB_STORAGE=m
CONFIG_USB_SUPPORT=y
CONFIG_USB_USBNET=m
CONFIG_USE_GENERIC_SMP_HELPERS=y


!!!! \o\, /o/, \o/ !!!!

So apparently that make menuconfig seems pretty much useless cause it creates a whole config that seems is not used. But maybe i'm wrong.

Thanks for your help Glevand. Be sure to correct that file please!

[Updated on: Fri, 09 March 2012 11:09]

Report message to a moderator

Re: petitboot compiler [message #814 is a reply to message #812] Fri, 09 March 2012 20:54 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Hmm, this config works fine for me.
You saw my lsmod. I want my USB drivers as modules so i could unload it if i want.

[Updated on: Fri, 09 March 2012 20:54]

Report message to a moderator

Re: petitboot compiler [message #818 is a reply to message #284] Fri, 09 March 2012 23:36 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Hmm, how does your modules load at boot time then? because even with them built into the kernel like i have them lsmod shows nothing loaded. Your linux-config-2.6.39 has them as '=y'

I noticed on your petitboot they are loaded at boot time. Are you editing some kind of file somewhere to make them load at boot? I can't seem to see any modules ever when doing lsmod. Whether I set to =y or =m.
Re: petitboot compiler [message #822 is a reply to message #818] Sat, 10 March 2012 00:09 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
They are loaded on boot from /etc/init.d/boot script:

load_modules /etc/modules.d/*


root@ps3-linux:/# ls -l /etc/modules.d/
-rw-r--r--    1 root     root            19 Mar  1 18:02 20-usb-core
-rw-r--r--    1 root     root             9 Mar  1 18:02 36-ps3flash
-rw-r--r--    1 root     root            10 Mar  1 18:02 37-ps3nflash
-rw-r--r--    1 root     root            28 Mar  1 18:02 38-net-ps3jupiter
-rw-r--r--    1 root     root            17 Mar  1 18:02 39-ps3dispmngr
-rw-r--r--    1 root     root            11 Mar  1 18:02 40-ps3physmem
-rw-r--r--    1 root     root             9 Mar  1 18:02 40-usb2
-rw-r--r--    1 root     root            12 Mar  1 18:02 41-ps3strgmngr
-rw-r--r--    1 root     root             9 Mar  1 18:02 50-usb-ohci
-rw-r--r--    1 root     root            12 Mar  1 18:02 60-usb-storage
-rw-r--r--    1 root     root           113 Mar  1 18:02 60-usb-storage-extras
-rw-r--r--    1 root     root             4 Mar  1 18:02 61-hid
-rw-r--r--    1 root     root             7 Mar  1 18:02 70-usb-hid
root@ps3-linux:/#
Re: petitboot compiler [message #823 is a reply to message #822] Sat, 10 March 2012 00:41 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Okay, I have checked build_dir/target-powerpc_uClibc-0.9.33/root-ps3/lib/modules/ Inside is 3.2.9/ dir. Are the modules supposed to be in modules/ or modules/3.2.9/ ?

This is all that's in there now. How do I get what i need in there?

anonymous@ps3mint ~/Source/openwrt-dev/build_dir/target-powerpc_uClibc-0.9.33/ root-ps3/lib/modules/3.2.9 $ ls -la
total 156
drwxr-xr-x 2 anonymous anonymous 4096 2012-03-09 04:59 .
drwxr-xr-x 3 anonymous anonymous 4096 2012-03-09 04:59 ..
-rw-r--r-- 1 anonymous anonymous 17032 2012-03-09 04:56 ums-alauda.ko
-rw-r--r-- 1 anonymous anonymous 8264 2012-03-09 04:56 ums-cypress.ko
-rw-r--r-- 1 anonymous anonymous 13640 2012-03-09 04:56 ums-datafab.ko
-rw-r--r-- 1 anonymous anonymous 8128 2012-03-09 04:56 ums-freecom.ko
-rw-r--r-- 1 anonymous anonymous 12576 2012-03-09 04:56 ums-isd200.ko
-rw-r--r-- 1 anonymous anonymous 11376 2012-03-09 04:56 ums-jumpshot.ko
-rw-r--r-- 1 anonymous anonymous 7992 2012-03-09 04:56 ums-karma.ko
-rw-r--r-- 1 anonymous anonymous 19832 2012-03-09 04:56 ums-sddr09.ko
-rw-r--r-- 1 anonymous anonymous 12704 2012-03-09 04:56 ums-sddr55.ko
-rw-r--r-- 1 anonymous anonymous 18792 2012-03-09 04:56 ums-usbat.ko


Inside modules/3.2.9/ There's none of what you have. Is that what make menuconfig does is put the selected modules into this directory in lib/modules/3.2.9 and then puts them in in /etc/modules.d/ in the dtbImage.ps3.bin?

Also why is it on make V=99 menuconfig when the grey window opens and you select your options, under wireless for kernel modules there is no option for jupiter. I'm not seeing half of the options in it. I can't figure out how to select jupiter for wireless modules.

Though I got my keyboard working, I'd like to be able to understand and set it up correctly.

Thanks for your help.

[Updated on: Sat, 10 March 2012 00:49]

Report message to a moderator

Re: petitboot compiler [message #826 is a reply to message #823] Sat, 10 March 2012 03:48 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
For some reason I found this while compiling:

WARNING: skipping kmod-xen-fbdev -- package not selected
WARNING: skipping kmod-ps3lan -- package not selected
WARNING: skipping kmod-ps3flash -- package not selected
WARNING: skipping kmod-ps3nflash -- package not selected
WARNING: skipping kmod-net-ps3jupiter -- package not selected
WARNING: skipping kmod-ps3dispmngr -- package not selected
make[3]: Leaving directory `/home/anonymous/Source/openwrt-dev/package/kernel'

I'm using your config. Why are these not selected?

Also it seems when I compile now with new howto. I'm getting make *** [world] Error 2 See below:

/home/anonymous/Source/openwrt-dev/build_dir/linux-ps3_petit boot/linux-2.6.39.4/arch/powerpc/include/asm/pgtable-ppc64.h : In function 'ptep_set_wrprotect':
/home/anonymous/Source/openwrt-dev/build_dir/linux-ps3_petit boot/linux-2.6.39.4/arch/powerpc/include/asm/pgtable-ppc64.h :260:16: error: variable 'old' set but not used [-Werror=unused-but-set-variable]
/home/anonymous/Source/openwrt-dev/build_dir/linux-ps3_petit boot/linux-2.6.39.4/arch/powerpc/include/asm/pgtable-ppc64.h : In function 'huge_ptep_set_wrprotect':
/home/anonymous/Source/openwrt-dev/build_dir/linux-ps3_petit boot/linux-2.6.39.4/arch/powerpc/include/asm/pgtable-ppc64.h :270:16: error: variable 'old' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[6]: *** [arch/powerpc/kernel/syscalls.o] Error 1
make[6]: *** Waiting for unfinished jobs....
LD init/mounts.o
cc1: all warnings being treated as errors

make[6]: *** [arch/powerpc/kernel/ptrace.o] Error 1
make[5]: *** [arch/powerpc/kernel] Error 2
make[5]: *** Waiting for unfinished jobs....
LD init/built-in.o

LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
AS usr/initramfs_data.o
LD usr/built-in.o
make[5]: *** wait: No child processes. Stop.
make[4]: *** [/home/anonymous/Source/openwrt-dev/build_dir/linux-ps3_peti tboot/linux-2.6.39.4/.image] Error 2
make[4]: Leaving directory `/home/anonymous/Source/openwrt-dev/target/linux/ps3'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/anonymous/Source/openwrt-dev/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/anonymous/Source/openwrt-dev'
make[1]: *** [/home/anonymous/Source/openwrt-dev/staging_dir/target-power pc_uClibc-0.9.33/stamp/.target_install] Error 2
make[1]: Leaving directory `/home/anonymous/Source/openwrt-dev'
make: *** [world] Error 2


Has there been changes openwrt-dev that's messing with this? I think you should start a clean directory and try this yourself following your howto. I'm not so sure it is working all the way anymore. I get world errors with both 2.6.39 and 3.2.9 now. Maybe the codebase has changed too much, but I do not know. Is it better to use svn co svn://svn.openwrt.org/openwrt/trunk -r 29906 openwrt-dev and skip the /.scripts/feeds update to stick with a clean build? I think this is causing all of my issues. If you've just been building since 29906 and haven't used a newer updated build i'd recommend trying it to see if it's broken for you.

By the way, I build a script around your howto to automate it since this is like the 10th time I've tried it.

Give it a whirl: http://wetnet.in/files/build.zip

It follows your howto, but it doesn't completely work due to the problems i'm having compiling.
Re: petitboot compiler [message #829 is a reply to message #823] Sat, 10 March 2012 09:16 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Yeah, you have to select kernel modules in meunuconfig too else they won't be copied into module dir. I uploaded my current config, try it.


CONFIG_PACKAGE_kmod-ps3flash=y
CONFIG_PACKAGE_kmod-ps3nflash=y


CONFIG_PACKAGE_kmod-ps3dispmngr=y
CONFIG_PACKAGE_kmod-ps3physmem=y
CONFIG_PACKAGE_kmod-ps3strgmngr=y

CONFIG_PACKAGE_kmod-net-ps3jupiter=y


http://gitbrew.org/~glevand/ps3/linux/openwrt/config-huge

I will update my OpenWRT and compile it again and then report back.

[Updated on: Sat, 10 March 2012 09:21]

Report message to a moderator

Re: petitboot compiler [message #830 is a reply to message #829] Sat, 10 March 2012 09:28 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 debootstrap patch i promised to you.

http://gitbrew.org/~glevand/ps3/linux/openwrt/debootstrap.pa tch
Re: petitboot compiler [message #837 is a reply to message #830] Sat, 10 March 2012 12:20 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Updated my openwrt and packages, recompiled petitboot, all modules were installed properly.
Re: petitboot compiler [message #846 is a reply to message #837] Sat, 10 March 2012 20:50 Go to previous messageGo to previous message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Could there be something wrong with my host system that is building openwrt or gcc version to get those world errors?

I'm running 3.2.9 Linux Mint. With gcc linero 4.6.

I will try your new config and check for those options.

Thanks for the debootstrap patch!

I will return and report. Also thanks for trying a fresh build and confirming it's not openwrt-dev trunk causing my issues.
Previous Topic: kexec problem
Next Topic: Wireless driver question
Goto Forum:
  


Current Time: Thu Jun 20 01:15:22 CEST 2013

Total time taken to generate the page: 0.02874 seconds