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 » Compiling 3.2.11 from kernel.org for debian.
Compiling 3.2.11 from kernel.org for debian. [message #929] Mon, 19 March 2012 10:55 Go to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Hey I was trying to write a debian installer for linux kernel 3 and ran into a snag. Maybe you can help me identify why this did not work.

Code from installer:

Quote:

cd /usr/src
pwd
wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.2.11.tar .bz2
tar xmvf linux-3.2.11.tar.bz2
ln -sf /usr/src/linux-3.2.11 /usr/src/linux
cd /usr/src/linux
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3sto r-multiple-regions.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3fb- use-fifo.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3fla sh.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3sys mgr-lpar-reboot.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3sys mgr-char-device.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3avm gr-char-device.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3dis pmgr.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3jup iter-3.2.1.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/lv1cal l-add-hvcalls-114-115.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3phy smem.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/lv1cal l-add-storage-region-hvcalls.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3str gmngr.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/ps3rom -vendor-specific-command.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/syscal l-spu-create-unlock-dput-fix.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/spu-en um-shared-param.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/patches/lv1cal l-repo-node-lparid-param.patch
patch -p0 < ps3stor-multiple-regions.patch
patch -p0 < ps3fb-use-fifo.patch
patch -p0 < ps3flash.patch
patch -p0 < ps3sysmgr-lpar-reboot.patch
patch -p0 < ps3sysmgr-char-device.patch
patch -p0 < ps3avmgr-char-device.patch
patch -p0 < ps3dispmgr.patch
patch -p0 < ps3jupiter-3.2.1.patch
patch -p0 < lv1call-add-hvcalls-114-115.patch
patch -p0 < ps3physmem.patch
patch -p0 < lv1call-add-storage-region-hvcalls.patch
patch -p0 < ps3strgmngr.patch
patch -p0 < ps3rom-vendor-specific-command.patch
patch -p0 < syscall-spu-create-unlock-dput-fix.patch
patch -p0 < spu-enum-shared-param.patch
patch -p0 < lv1call-repo-node-lparid-param.patch
wget http://gitbrew.org/~glevand/ps3/linux/linux-3/config-3.2.11
cp config-3.2.11 .config



## Kernel compilation

echo " "
echo "Starting compilation of kernel. (Takes around 1 hour or less.)"
cd /usr/src/linux
make menuconfig
make
make install
make modules_install



I can get through make menuconfig fine and everything patches well, no errors. It's on regular make that I have a problem.

Here is the error.

CC kernel/signal.o
kernel/signal.c: In function 'task_set_jobctl_pending':
kernel/signal.c:255: internal compiler error: in reload, at reload1.c:1173
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make[1]: *** [kernel/signal.o] Error 1
make: *** [kernel] Error 2


From signal.c at line 225 'task_set_jobctl_pending':

bool task_set_jobctl_pending(struct task_struct *task, unsigned int mask)
{
BUG_ON(mask & ~(JOBCTL_PENDING_MASK | JOBCTL_STOP_CONSUME | JOBCTL_STOP_SIGMASK | JOBCTL_TRAPPING));
BUG_ON((mask & JOBCTL_TRAPPING) && !(mask & JOBCTL_PENDING_MASK));

if (unlikely(fatal_signal_pending(task) || (task->flags & PF_EXITING)))
return false;

if (mask & JOBCTL_STOP_SIGMASK)
task->jobctl &= ~JOBCTL_STOP_SIGMASK;

task->jobctl |= mask;
return true;
}

reload1.C i'm guessing is gcc related. Am I going to need a newer GCC possibly? Could you maybe confirm or deny this?

I know this is a bit vague and complex, but could really use your help on this one. Thanks.

[Updated on: Mon, 19 March 2012 10:57]

Report message to a moderator

Re: Compiling 3.2.11 from kernel.org for debian. [message #931 is a reply to message #929] Wed, 21 March 2012 18:22 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Testing 3.2.12 currently. Will report back.
Re: Compiling 3.2.11 from kernel.org for debian. [message #934 is a reply to message #931] Wed, 21 March 2012 19:04 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
No such problems with 3.2.12.
Re: Compiling 3.2.11 from kernel.org for debian. [message #938 is a reply to message #934] Thu, 22 March 2012 05: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 debootstrapped with wheezy and did not have that issue. I think it was a gcc 4.4 issue. It's too low a version to compile 3.2.11 properly. Seems squeeze is not up to date enough.

make install is broken. I manually copied though, and can get it to load. via kexec. I do have another problem now though.

udev issue.


something about /run/udev cannot write. Have you run into this issue? in researching it someone said to remove /run and try it. I'll return and report.

[Updated on: Thu, 22 March 2012 05:30]

Report message to a moderator

Re: Compiling 3.2.11 from kernel.org for debian. [message #939 is a reply to message #938] Thu, 22 March 2012 18:22 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
I have no issues for now at least. Everything went fine.
Post more info about your problem, logs e.g.

[Updated on: Thu, 22 March 2012 19:49]

Report message to a moderator

Re: Compiling 3.2.11 from kernel.org for debian. [message #941 is a reply to message #929] Thu, 22 March 2012 22:24 Go to previous messageGo to next message
nikitis is currently offline  nikitis
Messages: 58
Registered: July 2011
Location: The Dirty South
Gitbrew Member
Here's a blurry image. It goes away so fast that i didn't have time to focus a camera. If you zoom in you can read it easily enough though.

It shows this, then disappears quickly and boots back into petitboot.

http://wetnet.in/pictures/IMAG0270.jpg

it looks for /run/udev writable, but i don't even see a udev file or folder in /run.

Not sure where to get a log from. /var/log doesn't have anything useful regarding this.

[Updated on: Fri, 23 March 2012 02:17]

Report message to a moderator

Re: Compiling 3.2.11 from kernel.org for debian. [message #943 is a reply to message #941] Fri, 23 March 2012 18:27 Go to previous messageGo to next message
glevand is currently offline  glevand
Messages: 955
Registered: July 2011
Location: SONY
Gitbrew God
Debian or Ubuntu ? I have Debian and no problems.
Re: Compiling 3.2.11 from kernel.org for debian. [message #967 is a reply to message #943] Mon, 26 March 2012 17:50 Go to previous message
masterzorag is currently offline  masterzorag
Messages: 99
Registered: August 2011
Location: maiworld
Gitbrew Member
I was having similar message in one of my faulty petitboot, I was missing the blkid executable (part of openwrt's coreutils);
but surely you have blkid in /sbin...
Previous Topic: Wireless driver question
Next Topic: Can I make petiboot timeout ?
Goto Forum:
  


Current Time: Wed Jun 19 14:06:13 CEST 2013

Total time taken to generate the page: 0.02153 seconds