Author Topic: Calling all Linux Kernel developers!  (Read 392242 times)

0 Members and 2 Guests are viewing this topic.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #375 on: November 25, 2012, 10:29:04 am »
It's probably a good idea to take a look at this. I'm not sure if this will work, but this will certainly help you get a working ARM compiler on your Linux box.

Alternatively, if you have a newer version of Ubuntu/Debian, you can probably find an ARM toolchain package in your repos.
EDIT: arm-linux-gnueabi should work (I think). Grab gcc-arm-linux-gnueabi (sudo apt-get install gcc-arm-linux-gnueabi) and it should work. (This should pull in a few other dependencies as well.) The package page is located here. Note that this is only for the more recent versions of Ubuntu. For Debian, you must be on version 7 (testing), and the package might be named differently.
« Last Edit: November 25, 2012, 10:34:23 am by alberthrocks »
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Calling all Linux Kernel developers!
« Reply #376 on: November 25, 2012, 10:35:55 am »
oh, i have some problems with the final steps,
root@noobnonin-GN670AA-ABM-SG3110LA:~/linux# make zimage -j
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
make: arm-none-eabi-gcc: Command not found
make: *** No rule to make target `zimage'.  Stop.
root@noobnonin-GN670AA-ABM-SG3110LA:~/linux# mv arch/arm/boot/zimage zimage.tns
mv: cannot stat `arch/arm/boot/zimage': No such file or directory
root@noobnonin-GN670AA-ABM-SG3110LA:~/linux#


Simply read the error.
Makefiles are case sensitive.

Also, if your arm compiler is not found, try in a terminal arm-<tab><tab> and check if it is the correct one.

Edit ;
By the way, the -j option forkbombed my pc. I recommand to use -j8 instead.

Also, compiled a zImage and used buildroot to produce a rootfs (which is initrd ?) and can't boot on it.
I have this :

my script is :
Code: [Select]
kernel linux/zImage.tns
initrd linux/initrd.tns
boot
Am I missing something ?
« Last Edit: November 25, 2012, 10:45:25 am by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #377 on: November 25, 2012, 11:03:50 am »
im sorry if i offend you with this questions but, do you have a hub? does it turns on when u connect it with the calculator?

vogtinator: hey, i used ur kernel and when i connect my wifi dingle and put iwconfig it appears wlan0 but it says: no wireless extensions,

does it means its working and i dont have wifi? or does it means that it still doesnt recognize my dongle?
Regards,
« Last Edit: November 25, 2012, 11:04:07 am by noobnonin »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #378 on: November 25, 2012, 12:22:00 pm »
Quote
Am I missing something ?
Yes, you need the bootscript from tangrs.
You don't give the kernel the parameter "root=/dev/sda" or "root=/dev/sda1".

Quote
By the way, the -j option forkbombed my pc. I recommand to use -j8 instead.
Really? It runs fine for me, if I run it on tty1.

Quote
It's probably a good idea to take a look at this. I'm not sure if this will work, but this will certainly help you get a working ARM compiler on your Linux box.
Yes, I used this script and it works fine for compiling the kernel.

Quote
does it means its working and i dont have wifi? or does it means that it still doesnt recognize my dongle?
It can't find the firmware. You need to find it and put it in the right directory on your usb-stick.
« Last Edit: November 25, 2012, 12:22:49 pm by Vogtinator »

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Calling all Linux Kernel developers!
« Reply #379 on: November 25, 2012, 12:45:13 pm »
Quote
Am I missing something ?
Yes, you need the bootscript from tangrs.
You don't give the kernel the parameter "root=/dev/sda" or "root=/dev/sda1".

I think I may have had misunderstood.
My Initial question was talking about no-usb-related mehtod to load personnal stuff.
So, I may not have usb drives connected to it. Is there any way to produce a valid initrd like the one tangrs gave but with personnal stuff (again, without launching it via usb) ?
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #380 on: November 25, 2012, 01:16:04 pm »
If you want to use an initrd, use tangrs first bootloader script, before USB was working.
I think it was "root=/dev/mem".

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Calling all Linux Kernel developers!
« Reply #381 on: November 25, 2012, 02:05:46 pm »
If you want to use an initrd, use tangrs first bootloader script, before USB was working.
I think it was "root=/dev/mem".
Indeed, cmdline root=/dev/ram

But this does not help, same kernel panic as before...
Here is what I do after buildroot finished :

mv buildroot/output/target/rootfs.tns initrd.tns

> send to calc
> script :
Code: [Select]
kernel linux/zImage.tns
initrd linux/initrd.tns
cmdline root=/dev/ram
boot
« Last Edit: November 25, 2012, 02:08:32 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #382 on: November 25, 2012, 02:06:42 pm »
Does your kernel support initrds?
Which output format did you choose for buildroot?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #383 on: November 26, 2012, 03:19:06 pm »
Today I wanted to test initrds, I had to recompile the kernel as I disabled initrd support.
But the framebuffer didn't work anymore! Same error as before my patch..
Does the patch I posted earlier work at all?
I don't think so, I had to change nspire_clcd_check(...) to { return 0; }
Strange..
I could even have tested the wrong kernel  :-[

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Calling all Linux Kernel developers!
« Reply #384 on: November 26, 2012, 03:27:14 pm »
Does your kernel support initrds?
Which output format did you choose for buildroot?
Okay, so I'm not dumb.

I did not choosed any format. What should I specify in order to generate an initrd that the kernel will launch like you managed to do today (even if the framebuffer doesn't work) ?

Thanks.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #385 on: November 26, 2012, 03:28:56 pm »
Quote
I did not choosed any format. What should I specify in order to generate an initrd that the kernel will launch like you managed to do today?
Tangrs used the ext2 image format as initrd.
At least "file initrd.img" says so.
BTW: I couldn't get it to run, but that may be because it's too large to be decompressed (27MB).
I was too busy to solve the problem with the framebuffer, so I couldn't build a new (smaller) rootfs.

Quote
(even if the framebuffer doesn't work)
I don't think the initrd and framebuffer problem are related..
I could really have tested the wrong kernel the whole time *embarrassed*
« Last Edit: November 26, 2012, 03:35:40 pm by Vogtinator »

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #386 on: November 27, 2012, 06:40:44 am »
Quote
(even if the framebuffer doesn't work)
I don't think the initrd and framebuffer problem are related..
I could really have tested the wrong kernel the whole time *embarrassed*

Try making a different login text for each kernel...
That will help maybe.
« Last Edit: November 27, 2012, 06:41:03 am by InspiredByCas »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #387 on: November 27, 2012, 09:33:44 am »
The login text is displayed by the rootfs.
And I'm too lazy to change the version number every 10 minutes..

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Calling all Linux Kernel developers!
« Reply #388 on: November 27, 2012, 11:14:23 am »
Quote
And I'm too lazy to change the version number every 10 minutes..
Add an automated script that adds a timestamp to the version number so you don't have to?
/e

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #389 on: November 27, 2012, 11:54:22 am »
Quote
And I'm too lazy to change the version number every 10 minutes..
Add an automated script that adds a timestamp to the version number so you don't have to?

The main problem was that he don't know which kernel with which features he is testing.....