| Re: petitboot linux3.3.2 (PS3 slim) issue [message #1230 is a reply to message #1195] |
Tue, 01 May 2012 16:06   |
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 #1246 is a reply to message #1231] |
Sat, 05 May 2012 16:58   |
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   |
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 #1258 is a reply to message #1248] |
Sun, 06 May 2012 08:29   |
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 #1289 is a reply to message #1286] |
Sun, 13 May 2012 15:54   |
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 #1321 is a reply to message #1319] |
Tue, 22 May 2012 10:32  |
glevand
Messages: 955 Registered: July 2011 Location: SONY
|
Gitbrew God |
|
|
sombatttt wrote on Tue, 22 May 2012 08:26Hello 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
|
|
|
|