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 linux3.3.2 (PS3 slim) issue (found moudules path symlink and modules.dep missing-- please help solve)
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1230 is a reply to message #1195] Tue, 01 May 2012 16:06 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,


I've plan to test build my own boot loader from an existing linux Destro(for my Gentoo) by custom initramfs.

This's just my thinking is perhaps to test USB problem, such as wireless USB KDB that petitboot that is not working and reboot problem with USB keyboard. Actually, I'd like to know what is real problem and plan to boot my Gentoo by my own boot loader not petitboot.

The reason is for my Gentoo, wireless USB KDB is working. So I think your arch Linux, Debian and Freebsd would be worked also.

I didn't know about initramfs. I will try to do my own. But if you have a little time, please.

By the way, I will make use genkernel kit to generate the initfamfs. Then unpack it and add some more by using some binary-compiled result, such as binbox, ps3 utils, wireless config tools, telnet and etc. from petitboot build_dir/target directory. And build kernel with embeded initramfs with your .config.

What do you think is it applicable?

Anyway, Thank for all.




Re: petitboot linux3.3.2 (PS3 slim) issue [message #1231 is a reply to message #1230] Tue, 01 May 2012 16:28 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Sure, why not. You can intergrate your initramfs into bootloader. That's how petitboot works.
You can create your own bootloder from Gentoo or other distro.
petitboot is nothing more than a small Linux distro with builtin initramfs.


See CONFIG_INITRAMFS_SOURCE and http://www.mjmwired.net/kernel/Documentation/early-userspace /. That should tell you how to integrate your initramfs into kernel image.

You have to compile your kernel twice. First, to create modules and put it into initramfs image. Then compile it agaian and use the initramfs image created in the first step.

[Updated on: Tue, 01 May 2012 16:35]

Report message to a moderator

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1246 is a reply to message #1231] Sat, 05 May 2012 16:58 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,

I'd like have a little bit help. please do give me your arch Linux kernel.

My problem is now kernel and iniramfs size. If they are too big, My ps3 fails to boot( can not reduce its size much).

The reason is I saw your arch Linux is 8.9M and Initramfs is 13M. its size is so small. How can you make it?

For my petitboot, I can make vmlinux 10.6M and dtbImage.ps3.bin 11.6M, but i can not use its kernel config because some that used to be able to select to modules, it cannot for my Linux kernel. It fix to static with kernel, such as ps3rom, ps3flash,, ps3nflash and some missing sucha as USB driver. I just think this is becuase openwrt wrapper control over for kernel config

Here is what my test for vmlinux result size:

just try to compile Linux kernel with config-3.3.4 from you(gitbrew):
vmlinux 79.2 MB
vmlinux.bin 16.1MB
dtbImage.ps3 16.4MB
dtbImage.ps3.bin 16.8 MB
which one, for vmlinux you use? ( vmlinux or vmlinux.bin)

For my modifying some to modules,such as ext4, ufs, etc., I can make vmlinux only 74-75MB(Initramfs 46MB for genkernel(Gentoo) making).

So about kernel config, it is my misery thing and I am not sure to do.

Please do give yours.

Thanks for all.


Re: petitboot linux3.3.2 (PS3 slim) issue [message #1247 is a reply to message #1246] Sat, 05 May 2012 18:24 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I stripped my vmlinux with powerpc64-linux-strip.
And used options --strip-unneeded and --strip-debug.

dtbImage.bin is NOT only kernel, it contains a device tree and an initramfs.
vmlinux is kernel ONLY, no device tree and empty initramfs.

We have to use dtbImage.bin for PS3 because when HV loads it, there is NO device tree provided by HV.

But if we kexec a vmlinux from already running Linux kernel then we do not need a device tree because kexec provides it automatically to the kernel.

I think you are confusing 2 different things here.
dtbImage.bin is a boot image with a kernel, device tree and initramfs.
vmlinux is only a kernel.

If i understood you right then you want to create your own PS3 bootloader for Linux. In that case you need a boot image dtbImage.bin. vmlinux won't work.

For a LiveCD, vmlinux and an initramfs is enough because i kexec it from a running Linux already.

dtbImage.bin can be found in arch/powerpc/boot/ dir.

Hope it helps.

[Updated on: Sat, 05 May 2012 18:33]

Report message to a moderator

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1248 is a reply to message #1247] Sat, 05 May 2012 18:35 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
My kernel config: http://gitbrew.org/~glevand/ps3/linux/linux-3/config-3.3.4
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1249 is a reply to message #1231] Sat, 05 May 2012 19:04 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,

I'm very much sorry for my previous ask help. I look your archLinux again and I find your in the forum. I compile it; the size of vmlinux is 13.8M. I think this is applicable for me.

This is just my result kernel size:
Ubutu 12 beta: debian tools
Cross Tools: gcc4.7 binutils 22.2 gmp5.04 mfpr3.1.0 mpc0.9 as you guide.

Your config-3.3.4 from ArchLinux Forum
1) just copy to .config
make
vmlinux 13.8MB
vmlinux.bin 11.8MB

2) no sound
no wiress bluetooth modles
no iommu
add ufs modules
vmlinux 13.8MB
vmlinux.bin 11.8MB

Is it the same config as your archLinux?

Thanks for all.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1258 is a reply to message #1248] Sun, 06 May 2012 08:29 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,

I'm sorry to disturbing again. As my previous one, I didn't undertand why I repeat to confirm: my vmlinux size for your config-3,3,4 is back to around 76MB. So I repeat done on another PC and my PS3 are also around the same.

Now I give up to do more. Just add config for ext2(static), Then ufs (module) and my audit syscall. Try another test as below.

My experiment result test:
1) dtbImage.ps3: 15943811 -> boot done ok
root@ps3-linux:/mnt/boot# kexec -l dtbImage.ps3 --append="root=/dev/ps3dd2"
segment[0].mem:0xa9a000 memsz:15822848
segment[1].mem:0x19b1000 memsz:36864
segment[2].mem:0x7fff000 memsz:4096

2) dtbImage.ps3.bin: 15768724 -> Cannot determine the file type
3) zImage: 15943811 -> boot done ok
root@ps3-linux:/mnt/boot# kexec -l zImage-3.3.4
segment[0].mem:0xa9a000 memsz:15822848
segment[1].mem:0x19b1000 memsz:36864
segment[2].mem:0x7fff000 memsz:4096

4) vmlinux: 75449582 -> boot done ok
root@ps3-linux:/mnt/boot# kexec -l vmlinux-3.3.4 --append="root=/dev/ps3dd2"
Modified cmdline:root=/dev/ps3dd2
segment[0].mem:0xa9a000 memsz:15691776
segment[1].mem:0x1991000 memsz:36864
segment[2].mem:0x7fff000 memsz:4096

5) vmlinux.bin: 15688772 Cannot determine the file type

As the result, so this means petitboot acceptp dtbImage.ps3, zImage and vmlinux.

Refer to dtbImage for powerpc boot wrapper document, I understand about the difference between zImage and dtbImage. But what about the vmlinux I wonder why its so big size, but when kexec -l, the size of load for segment 0 above as around the same size as dtbImage and zImage but smaller a bit.

This is quite mess me up. As the result above, it shows me that I can use dtbImage, zImage or vmlinux because when kexec load consume around the same amount of memory.

My quetion:

Just my curious to know, What your vmlinux for your archLinux using? (dtbImage.ps3, zImage or vmlinux)

Thanks for all.



Re: petitboot linux3.3.2 (PS3 slim) issue [message #1260 is a reply to message #1258] Sun, 06 May 2012 09:20 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
vmlinux for Arch Live CD is just a kernel because i boot it with kexec and not with HV.

[Updated on: Sun, 06 May 2012 09:21]

Report message to a moderator

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1275 is a reply to message #1260] Sun, 06 May 2012 20:10 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,,

I'like to inform about kernel Hack Section config.

I try on your config-3.3.4(archLinux) by following petitboot for Hack Section except for detect Hang Tasks(must be selected because dtc compile fails). The vmlinux size reduces from 75MB to 10.6MB. This is quite a lot difference, but for the dtbImage.ps3 is not much difference.

Another, if I follow the petitboot by comparing one by one that matches both for all. the compiled vmlinux is 8.4MB. So if add busybox and a few utilities, the size will be about 10M to 12MB. this is having reason I think.

My question:
for Hack section config, Is it affected to any function of kernel or not? I means: will this harm? Another Is it for master man to do debugging?.

Very much thanks for any things.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1278 is a reply to message #1275] Sun, 06 May 2012 20:36 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
You can strip your kernel and remove all debug symbols.
Use --strip-unneeded and --strip-debug options with powerpc64-linux-strip.
Debug symbols are useful for me at least in case a driver behaves badly and crashes.
Without it, you won't see function names when Linux kernel crashes.
But for petitboot it's OK.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1284 is a reply to message #1278] Tue, 08 May 2012 11:09 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,

Petitboot, and my PS3 are booting done good(No any error messes). Now I am still looking for my boot loader init scripts for embeded small linux enviroment from the web-source. Now I can boot my kernel with external initramfs(simple). Do you happend to know any good sources? So I can learn and practice more about startup, configuring my small linux for best.

| _ || ___||___ |
| __||___ ||___ |
|__| |_____||_____|
L I N U X

root@ps3-linux:/# uname -a
Linux ps3-linux 3.3.5 #1 SMP Tue May 8 15:35:41 ICT 2012 ppc64 GNU/Linux

localhost ~ # uname -a
Linux localhost 3.3.5 #1 SMP Tue May 8 04:34:11 UTC 2012 ppc64 Cell Broadband Engine, altivec supported GNU/Linux

lo no wireless extensions.
wlan1 IEEE 802.11bg Nickname:"ps3_jupiter_sta"
Mode:Managed Channel:0 Access Point: Not-Associated
Encryption key:off
eth1 no wireless extensions.

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1286 is a reply to message #1278] Thu, 10 May 2012 13:23 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,

I'd like to inform for the USB device problem for petitboot or my gentoo reboot or ps3-boot-game-os by USB keyboard:

I try a simple experiment by bash script like below:
rmmod usbhid
rmmod hid
rmmod usb-storage
rmmod usb-common
rmmod usbcore
reboot

My ps3 has no any problems with USB keyboard and works fine. So I absolutely sure you can do patch and a better way to solve this problem, especially for usb keyboard. This is because it sometimes has to work on local.

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1289 is a reply to message #1286] Sun, 13 May 2012 15:54 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,

I try petitboot update(May 2012) found problem(ps3av error). No petitboot-20090709 in the build_dir. I compare with my old source find there are some update about petitboot makefile patch(twin) to X11 (before was PS3). No more petitboot daemon for device scanning , petitboot mennu and any that in petitboot-20090709.

if this change is for support X11 intendingly,the petitboot config must be re-configured, but I cannot find somthing to make change.

Please help advice.

Talking about my own boot loader, As your advice, I make some experiment and find that is very much interesting. Just a simple and plain init scripts can work. Now my wireless keyboard is working.

Linux with busybox is small, plain, and powerful.

Anyway, thanks a lot.

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1290 is a reply to message #1289] Sun, 13 May 2012 20:19 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Hmm, i updated my openwrt yesterday and compiled Linux 3.3.6, worked fine for me.
Did you update packages too ?
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1291 is a reply to message #1290] Mon, 14 May 2012 04:25 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello,

Yes, try for update old source by svn update, scripts/feeds update and scripts/feeds install -a, then dlete all of staging_dir and build_dir. And try on new refresh once also. The same result, When BootOtherOS and reboot. Then there is display Linux boot. I can see the Linux Logo and see message error about ps3av and cannot do anything. I cannot capture the error page.
I try to make about three times with the same problem.

Like my previuos message, there is no petitboot2009 in build_dir any more.

No I use my old copy source for 3.3.5 and 3.3.6. It still work fine and also no any problems with my KBD if unload usbhid and hid before kexec -e when boot Linux with KBD.

Another I use all of the old patches. So I am not sure you have any update patches for the change.

Thanks a lot for any.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1292 is a reply to message #1290] Mon, 14 May 2012 18:40 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,

Yes, your right for today updating a new refresh source. I can see the petitboot-2009 in build_dir and my compiled petitboot now is working for 3.3.6.

There is only one compile problem for pb_twin (asked for petitiboot.h). So then make change of petitboot Makefile for PS3 enabled, instead of X11, then it's passed.

Thanks a lot.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1297 is a reply to message #1290] Fri, 18 May 2012 04:46 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen.,

I'd like to inform that petitboot source(17 May, 2012) can boot. but when use command mount. There is an error about /proc/self. As your message, yours is working fine. But i'm not sure that you use the update petitboot source or not. I have tried many times and have the same error. I didn't know what wrong.

Now for my old boot loader is working as your short guide. But still find the good small linux configuring. It is very much interesting to study more. So if you have any good resources, please do advice.

Thanks you very much for all.




Re: petitboot linux3.3.2 (PS3 slim) issue [message #1298 is a reply to message #1297] Fri, 18 May 2012 08:46 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I had problems with libmount too first. But after i updated OpenWRT and all packages and rebuilt it, it was fine.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1304 is a reply to message #1298] Sat, 19 May 2012 07:33 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,

I do as your advice as follow, but still fails. Please do advice if my doing is not right.
svn update
./scripts/feeds update -a
./scritps/feeds intstall -a
touch package/kernel/Makefile
make V=99 menuconfig
make V=99 kernel_menuconfig
make V=99

this happens not only for old source, but refresh source also.

root@ps3-linux:/proc# mount
mount: /proc/self/mountinfo: parse error: ignore entry at line 1.
mount: /proc/self/mountinfo: parse error: ignore entry at line 2.
mount: /proc/self/mountinfo: parse error: ignore entry at line 3.
mount: /proc/self/mountinfo: parse error: ignore entry at line 4.
mount: /proc/self/mountinfo: parse error: ignore entry at line 5.
mount: /proc/self/mountinfo: parse error: ignore entry at line 6.
mount: /proc/self/mountinfo: parse error: ignore entry at line 7.
mount: /proc/self/mountinfo: parse error: ignore entry at line 8.
mount: /proc/self/mountinfo: parse error: ignore entry at line 9.
mount: /proc/self/mountinfo: parse error: ignore entry at line 10.
mount: /proc/self/mountinfo: parse error: ignore entry at line 11.
mount: /proc/self/mountinfo: parse error: ignore entry at line 12.
mount: /proc/self/mountinfo: parse error: ignore entry at line 13.
mount: /proc/self/mountinfo: parse error: ignore entry at line 14.
none on (null)
none on (null)
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1306 is a reply to message #1304] Sat, 19 May 2012 08:45 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Will test it today.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1308 is a reply to message #1306] Sat, 19 May 2012 22:04 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Confirmed. The same problem here.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1309 is a reply to message #1308] Sun, 20 May 2012 15:58 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
The problem is in util-linux-ng somewhere.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1310 is a reply to message #1309] Mon, 21 May 2012 03:27 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,

Yes, yours is right. I use busybox mount command, there is no any problem. So the problem is mount command parsing wrong, but any others works fine.

I will wait for util-linux update.

I have one question about ps3av_send_cmd_pkt error(-11). This happen on my own boot loader. I don't know what happen. Can you tell about this error.

Thanks for any.
Re: petitboot linux3.3.2 (PS3 slim) issue [message #1312 is a reply to message #1308] Mon, 21 May 2012 15:26 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,

My ps3 is freezed because of removing my flash drive after re-flash petitboot. Don't know how to do. just hard power down. And the power up. My ps3 ask me to connect my joy-stick. Then press power on joystick. Finally my screen is blank. I don't know how to do more. Just use "restore ps3 system" Then bootOtherOS and reboot. Find no more ps3dd. use create_hdd_region.sh but no ps3hvcal and ps3stor. So what to do next. use petitboot 2.6.30. Yes, there are ps3hvcal and ps3stor. fine.

Can you add packet for ps3hvcal and ps3stor to petitboot? I think problem problem if update petitboot can not heal system.

Thanks any for all things.




Re: petitboot linux3.3.2 (PS3 slim) issue [message #1319 is a reply to message #1309] Tue, 22 May 2012 10:26 Go to previous messageGo to next message
sombatttt is currently offline  sombatttt
Messages: 50
Registered: March 2012
Location: Thailand
Gitbrew Member
Hello Gen,

kernel 3.3.7, my ps3 no any errors. I don't see any differences from any previous ones. My petiboot is also the same status.

I'm so sorry about ps3hvcall and ps3stor in my previus. The create hdd region scripts not use for kernel 3.x any more. Anyway, Do you have script to use instead of create hdd region scripts?

Thanks for any things.

Re: petitboot linux3.3.2 (PS3 slim) issue [message #1321 is a reply to message #1319] Tue, 22 May 2012 10:32 Go to previous message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
sombatttt wrote on Tue, 22 May 2012 08:26
Hello Gen,

kernel 3.3.7, my ps3 no any errors. I don't see any differences from any previous ones. My petiboot is also the same status.

I'm so sorry about ps3hvcall and ps3stor in my previus. The create hdd region scripts not use for kernel 3.x any more. Anyway, Do you have script to use instead of create hdd region scripts?

Thanks for any things.



You can use my ps3sed tool and ps3strgmngr driver to delete/modify/create storage regions. It's more comfortable to use than old 2.6 tools. You can find some tutorials here in forum.

E.g. here: http://wiki.gitbrew.org/forum/t/54/

[Updated on: Tue, 22 May 2012 10:37]

Report message to a moderator

Previous Topic: Reboot.pkg returns to GameOS
Next Topic: Network Driver woes.......
Goto Forum:
  


Current Time: Wed Jun 19 07:40:06 CEST 2013

Total time taken to generate the page: 0.02965 seconds