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

0 Members and 5 Guests are viewing this topic.

Offline InspiredByCas

  • LV3 Member (Next: 100)
  • ***
  • Posts: 44
  • Rating: +4/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #360 on: November 24, 2012, 09:48:35 am »
Yeah! ;D
My 'USB power upgrader' works!
It automatically switches on when input voltage from the CAS comes and switches off automatically when input voltage is off (when the calc is off through ctrl+on). A little green LED displays the state.
I can connect the output to a USB fan, and it's working...

BUT: when i connect to USB stick, the calc reboots instantly, even if it is running linux. (edit: oh, only with the very first version of linucx, with the newer the stick lights up) I think I connected the data wires wrong, so that data+ is connected to data- and vise versa. Not even one device is displayed by lsusb (watch -n1 lsusb).
So it restarts to prevent corruption of any devices...
Connecting to a hub doesn't do anything... not even hub LED is working... Only power consumption goes up to 550 mA.
I will try swapping the data wires...

If it is finished, I will post pictures.


If it is totally off, it doesn't need any power from the batteries (0 mA), when input comes in, it needs about 5 mA, and with my USB fan it needs 200 mA.
The power consumption at the batteries should be double as at the USB output port, because the L7805 has a efficiency of ~50% with 9 volts input.


1. EDIT: Just the power works, data transfer is not working, because of the two separated input/output power circuits, but the USB host needs to connect the data wires to ground to enumerate USB devices.

Now inventing a complete different circuit...

2. EDIT: My new circuit works! Even hubs are working with less power consumption than before :D Just the off-switching part does not work correctly, there is always a output... Working on it.
The trick was - as I thought - the GND, which must be the same for input and output.
« Last Edit: November 24, 2012, 04:34:42 pm by InspiredByCas »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #361 on: November 24, 2012, 06:24:01 pm »
Minecraft has now been ported to the raspberry pi!
If we can get mesa software-rendering running, we can "play" minecraft(which will be waiting for the first frame from the game..)
« Last Edit: November 24, 2012, 06:33:23 pm by Vogtinator »

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #362 on: November 25, 2012, 01:08:34 am »
vogtinator, i have problem with the steps, i have an error ***
*** Can't find default configuration "arch/x86/configs/nspire_defconfig"!
***
make[1]: *** [nspire_defconfig] Error 1
make: *** [nspire_defconfig] Error 2

btw, how can i make an arm compiler? i dont understand that.

Regards,

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: Calling all Linux Kernel developers!
« Reply #363 on: November 25, 2012, 02:13:55 am »
Quote
*** Can't find default configuration "arch/x86/configs/nspire_defconfig"!
***
make[1]: *** [nspire_defconfig] Error 1
make: *** [nspire_defconfig] Error 2
The arch is wrong, it should be ARCH=arm :)

Quote
btw, how can i make an arm compiler? i dont understand that.
Just let buildroot do its job :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #364 on: November 25, 2012, 05:58:04 am »
noobnonin, you did not follow my guide.
You forgot to edit the Makefile (or "export ARCH=arm").
you can use the toolchain from buildroot as well as the toolchain for ndless.

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #365 on: November 25, 2012, 09:01:30 am »
ok i did export ARCH=arm

but now i have this root@noobnonin-GN670AA-ABM-SG3110LA:~/linux# make nspire_defconfig
#
# configuration written to .config
#
root@noobnonin-GN670AA-ABM-SG3110LA:~/linux# make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2


Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #366 on: November 25, 2012, 09:04:13 am »
admin, could you move this to another topic called how to compile your kernel on your calculator? pls and thanks

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #367 on: November 25, 2012, 09:24:08 am »
But why did you post it here?
PS: Read your error messages..
Quote
Install ncurses (ncurses-devel) and try again.

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #368 on: November 25, 2012, 09:56:22 am »
because ur tutorial was here XD

ok i found it, if someone doesnt have ncurses you have to type this in ur console: " apt-get install libncurses5-dev"

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #369 on: November 25, 2012, 10:01:54 am »
Don't forget to install gcc and binutils.

I built a kernel with every WLAN driver selected. Don't know whether it works, I don't have any wlan dongles.

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #370 on: November 25, 2012, 10:02:43 am »
does your kernel have the driver i posted??
btw, why do i need the gcc and bin utilities?, when i look for gcc i find first class? whats that...

Regards,
« Last Edit: November 25, 2012, 10:04:13 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 #371 on: November 25, 2012, 10:06:07 am »
Yes, it should.
Link: http://dl.dropbox.com/u/105478372/zImage.tns
Hm, I override my other zImage on dropbox, I hope it does still work..

Edit:
"apt-get install gcc binutils" should work.
« Last Edit: November 25, 2012, 10:08:21 am by Vogtinator »

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #372 on: November 25, 2012, 10:14:15 am »
is that the same kernel as yours or is it a new one? o.O

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #373 on: November 25, 2012, 10:25:17 am »
I built another one.

Offline noobnonin

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 151
  • Rating: +3/-38
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #374 on: November 25, 2012, 10:26:11 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#