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

0 Members and 2 Guests are viewing this topic.

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1050 on: February 23, 2014, 10:15:48 am »
Thank you for your response Legimet  :)

But sadly I still can't figure it out... Here's what I did:
Downloaded linux-3.8-rc4.tar.xz from https://www.kernel.org/pub/linux/kernel/v3.x/testing/ since this is the version used here https://raw.github.com/Vogtinator/nspire-linux-configs/master/kernel/.config
But it seems like there is nothing related to nspire in this source ("/" to search in menuconfig returns no results for "nspire")

So I downloaded last stable one from here https://www.kernel.org/ (3.13.5) and I've come so far:
Code: [Select]
[simon@XeonArch Nspire]$ unp linux-3.13.5.tar.xz
  ... extracting files from archive ...
[simon@XeonArch Nspire]$ cd linux-3.13.5/
[simon@XeonArch linux-3.13.5]$ make distclean; make mrproper
[simon@XeonArch linux-3.13.5]$ export ARCH=arm
[simon@XeonArch linux-3.13.5]$ export CROSS_COMPILE=arm-none-eabi-
[simon@XeonArch linux-3.13.5]$ make menuconfig
  -> System Type -> Multiple platform selection -> disable ARMv7 and ARMv5 gets selected automatically
  -> System Type -> enable [*] TI-NSPIRE based
  -> Device Drivers -> Input device support -> Keyboards -> enable TI-NSPIRE built-in keyboard (NEW)
  -> < Save > as .config
[simon@XeonArch:linux-3.13.5]$ make -j8
..... Kernel: arch/arm/boot/zImage is ready
Booting this kernel I still get no messages on the screen. I need graphics-support somehow I guess..

So I tried to use the .config here https://raw.github.com/Vogtinator/nspire-linux-configs/master/kernel/.config
Code: [Select]
[simon@XeonArch:linux-3.13.5]$ make distclean; make mrproper
...
[simon@XeonArch:linux-3.13.5]$ export CROSS_COMPILE=arm-none-eabi-
[simon@XeonArch:linux-3.13.5]$ export ARCH=arm
[simon@XeonArch:linux-3.13.5]$ wget https://raw.github.com/Vogtinator/nspire-linux-configs/master/kernel/.config
...
[simon@XeonArch:linux-3.13.5]$ make silentoldconfig
scripts/kconfig/conf --silentoldconfig Kconfig
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) [arm-none-eabi-] arm-none-eabi-
Compile also drivers which will not load
.... BLABLABLA ...
ARMv6 based platforms (ARM11) (ARCH_MULTI_V6) [N/y] (NEW)
ARMv7 based platforms (Cortex-A, PJ4, Scorpion, Krait) (ARCH_MULTI_V7) [Y/n] (NEW)
As you can see the default for ARMv6 is No, but ARMv7 is Yes, which is wrong. You need to select No yourself to bring up ARMv5: "ARMv5 based platforms (ARM926T, XSCALE, PJ1, ...) (ARCH_MULTI_V5) [Y] (NEW) y". So converting the .conf from github doesn't work as intended..

I'm not that keen on compiling kernels, OpenWRTs Buildroot is the only thing I really dived into, but my devices were properly preconfigured there...

clueless
schuhumi

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1051 on: February 23, 2014, 10:19:20 am »
My .config from github doesn't work for the DT kernels, but you can have my current .config which boots graphical.
I'm having some issues with initrds, though.

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1052 on: February 23, 2014, 01:13:04 pm »
i like to see a graphical linux os :) can i have a precompiled version :D

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1053 on: February 23, 2014, 01:14:44 pm »
Quote
i like to see a graphical linux os  can i have a precompiled version
What exactly do you mean by "graphical linux os"?

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1054 on: February 23, 2014, 01:17:24 pm »
because you said "boots graphical." i was thinking you had a version that didn't boot in command line mode.
whit some kind of GUI?

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1055 on: February 23, 2014, 01:19:02 pm »
No, with graphical I mean it utilizes the LCD :P
You can compile a rootfs with a nice splash screen if you want to.

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1056 on: February 23, 2014, 01:22:17 pm »
i want one with an interface :p, some thing i can always boot, and one that doesn't drain battery when i leave it on.
but i cant make my own version, if i have time for it i'm going to do some research on it.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1057 on: February 23, 2014, 01:29:41 pm »
That'd require external storage and woudn't be very useful.. LXDE works, that's about it.

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1058 on: February 23, 2014, 02:08:31 pm »
I'm sorry to bother you guys again, but it just won't work for gods sake  :banghead:

Here's exactly what I did:
Code: [Select]
$ PATH=$PATH+":/opt/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/"
$ wget https://www.kernel.org/pub/linux/kernel/v3.x/testing/linux-3.14-rc2.tar.xz
$ unp linux-3.14-rc2.tar.xz
 <extracting without errors>
$ cd linux-3.14-rc2/
$ cp ~/Downloads/config ./.config   #This is your uploaded .config, verified it multiple times
$ export ARCH=arm
$ export CROSS_COMPILE=arm-none-eabi-
$ make silentoldconfig
 < ran through without a single error or question >
$ make -j2
......
 Kernel: arch/arm/boot/zImage is ready
$ ls -l arch/arm/boot/zImage
-rwxrwxr-x 1 simon simon 1504096 Feb 23 19:28 arch/arm/boot/zImage  #size comparison with prebuilt ones: small: 1753152 large: 1936000
And no kernel messages again...

Both prebuilt zImages from here http://tiplanet.org/nspire-linux-builds/ boot as expected. (ok, the small one crashes midways with initrd, but hey - kernel messages :) )

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1059 on: February 23, 2014, 02:11:56 pm »
I updated http://tiplanet.org/nspire-linux-builds and included a DTB version. Could you try that with a dtb-enabled linuxloader2?
The linuxloader2 from nsprie-linux-builds should work. You just have to add "dtb nspire-cx.dtb.tns" to the bootscript.

Offline Legimet

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +29/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1060 on: February 23, 2014, 02:38:48 pm »
Use this script to set up a toolchain.

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1061 on: February 23, 2014, 02:54:45 pm »
YESSS!!

Your builds as well as my self compiled kernel+DTB work!
(I have to admit that this entire devicetree-thing wasn't clear to me and I asumed I can use the kernel in the same way as the old ones on your download-page...)

Now I can go on and customize the kernel to my needs  ;D
Thank you very much!

Use this script to set up a toolchain.
I guess you refer to my path-hack above: Thats on my Ubuntu-Laptop and I had CodeSourcery installed on that some time ago. Normally I have an Arch-Server with two quadcore Xeon processors and 16GB Ram for compiling things ;-) With a well integrated toolchain of course
« Last Edit: February 23, 2014, 02:59:06 pm by schuhumi »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1062 on: February 23, 2014, 03:53:06 pm »
Quote
YESSS!!

Your builds as well as my self compiled kernel+DTB work!
Could you try the new xconfig image? I switched from Xorg to KDrive/TinyX (or whatever it's called in buildroot) and everything should work fine.

Quote
I guess you refer to my path-hack above: Thats on my Ubuntu-Laptop and I had CodeSourcery installed on that some time ago. Normally I have an Arch-Server with two quadcore Xeon processors and 16GB Ram for compiling things ;-) With a well integrated toolchain of course
You won't need that for this small 2 MB kernel ;)

Offline schuhumi

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1063 on: February 23, 2014, 04:49:12 pm »
Could you try the new xconfig image? I switched from Xorg to KDrive/TinyX (or whatever it's called in buildroot) and everything should work fine.
Actually I can't... I have trouble getting USB to work :/

This means the OS doesn't recognize keyboard and usb-flashdrive. (But its not a hardware fault, tested it again with the old kernel). Went through menuconfig, the only suspicious things I found are:
#1 > Device Drivers > USB support > [* ]     Rely on OTG Targeted Peripherals List
If you say Y here, the "otg_whitelist.h" file will be used as a
  │ product whitelist, so USB peripherals not listed there will be 
  │ rejected during enumeration.

#2 [ ]   > Device Drivers > USB support >  [ ]  Generic EHCI driver for a platform device
is not activated, but it is in here https://github.com/Vogtinator/nspire-linux-configs/blob/master/kernel/.config
(used this to find a needed driver or something...)

But even with diabling #1 and enabling #2 it won't work  ???

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #1064 on: February 23, 2014, 04:50:42 pm »
Does lsusb show something?
Did you switch to host mode before booting into linux?
« Last Edit: February 23, 2014, 04:50:58 pm by Vogtinator »