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

0 Members and 1 Guest are viewing this topic.

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #720 on: February 15, 2013, 08:30:37 pm »
Ohh, I've never used the initrds on the nightly builds XD I'd imagine you can just login as 'root' with no password.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #721 on: February 15, 2013, 08:39:23 pm »
On which device?

On your virtual machine.

To make sure USB host always works, try reading up http://hackspire.unsads.com/wiki/index.php/Linux#USB

fdisk -l shows nothing, is that normal?  :-\
EDIT: Can't get it to work setting the disk value as /dev/sdb (or sdb1)

I read that article, that is actually why the read light is working again.
« Last Edit: February 15, 2013, 08:44:50 pm by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vsod99

  • LV3 Member (Next: 100)
  • ***
  • Posts: 70
  • Rating: +1/-1
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #722 on: February 15, 2013, 08:42:15 pm »
Can someone link me to a cheap confirmed to work powered USB hub? thanks :)

Offline tangrs

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 229
  • Rating: +98/-0
    • View Profile
    • tangrs blog
Re: Calling all Linux Kernel developers!
« Reply #723 on: February 15, 2013, 08:47:05 pm »
On which device?

On your virtual machine.

To make sure USB host always works, try reading up http://hackspire.unsads.com/wiki/index.php/Linux#USB

fdisk -l shows nothing, is that normal?  :-\
EDIT: Can't get it to work setting the disk value as /dev/sdb (or sdb1)

I read that article, that is actually why the read light is working again.

Are you running it as root?

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #724 on: February 15, 2013, 08:56:58 pm »
Disk /dev/sdb1: 1047 MB, 1047511040 bytes
33 heads, 61 sectors/track, 1016 cylinders, total 2045920 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb1 doesn't contain a valid partition table

(This was manually typed)
« Last Edit: February 15, 2013, 08:57:33 pm by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #725 on: February 16, 2013, 12:53:47 pm »
Thats correct, as /dev/sdb1 is the first partition. fdisk -l /dev/sda should show the one you're searching for.
You have to use sda on your calc, it doesn't have another HDD :)
If it still doesn't work, run fsck /dev/sda (while not mounted).
You can also try booting into the initrd and mounting the usb drive then.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #726 on: February 16, 2013, 09:36:40 pm »
[Did this last night, was gone all day]
The drive is accessible from Linux when booted with an initrd, and a USB keyboard works. Was able to navigate to the files on the disk and edit them with nano, but running X and xcalc gave an error (something like "file doesn't exist"). Tried a flash drive with a FAT system (inside Linux), that didn't work...

Will try using fsck (I assume you mean in the VM...)

EDIT: After using fsck on the VM the drive still doesn't work. After typing "fsck /dev/sda" before mounting: "fsck: fsck.auto: No such file or directory"
« Last Edit: February 16, 2013, 10:08:52 pm by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #727 on: February 17, 2013, 07:32:08 am »
Quote
After typing "fsck /dev/sda" before mounting: "fsck: fsck.auto: No such file or directory"
What distro do you use? They f**ked it up.

Quote
The drive is accessible from Linux when booted with an initrd, and a USB keyboard works.
Then you should be able to use it as root=<drive>. You have to substitue <drive> with exactly the name of your drive you were able to mount.


Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #728 on: February 17, 2013, 11:31:25 am »
Quote
After typing "fsck /dev/sda" before mounting: "fsck: fsck.auto: No such file or directory"
What distro do you use? They f**ked it up.

Sorry about not being clear enough, on the VM fsck worked, but the drive when used as the boot device on the calc still doesn't work.
The fsck: fsck.auto error is from when I tried the same thing on the calc...  :-\

Quote
The drive is accessible from Linux when booted with an initrd, and a USB keyboard works.
Then you should be able to use it as root=<drive>. You have to substitue <drive> with exactly the name of your drive you were able to mount.

Hmm... I'll try to mount it again to make sure that I'm mounting it right.
Does it make any difference that I have to use "mkdir disk" in media before doing "mount /dev/sda /media/disk" or it gives an error?

EDIT: The device mounts with sda1! I must have had that OTG bug that one time I tried to mount with sda1! Will try to mount it again.

EDIT: IT'S WORKING!!! It's loading now!  :w00t: Thank you!

EDIT: Oops... Typed "X", now there's a blank screen, what do I do now... (other than reboot)
« Last Edit: February 17, 2013, 12:03:35 pm by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #729 on: February 17, 2013, 01:07:15 pm »
Quote
The fsck: fsck.auto error is from when I tried the same thing on the calc... 
Probably some weird issue with busybox and buildroot.. It ran fine some time ago.

Quote
EDIT: IT'S WORKING!!! It's loading now!   Thank you!
Great!

Quote
EDIT: Oops... Typed "X", now there's a blank screen, what do I do now... (other than reboot)
Try "startx". You can type "Ctrl + Alt + F1" on an USB keyboard and press "Ctrl + C" then.
« Last Edit: February 17, 2013, 01:20:06 pm by Vogtinator »

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #730 on: February 17, 2013, 03:31:23 pm »
What does Ctrl+Alt+F1 do? I don't have a powered hub yet, but I can try using my dad's unpowered one for now
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #731 on: February 17, 2013, 06:32:42 pm »
It takes you to another terminal workspace. Ctrl+Alt+ a number 1-6 take you to terminals, and X sessions generally get hosted on 7 and above (although they occasionally take one of the lower ones)

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #732 on: February 18, 2013, 12:09:32 am »
Do the terminal sessions only operate in X?
I support this kind of hacking: making things do things that those things weren't originally meant to do.

Offline willrandship

  • Omnimagus of the Multi-Base.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2953
  • Rating: +98/-13
  • Insert sugar to begin programming subroutine.
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #733 on: February 18, 2013, 12:25:10 am »
It's actually exactly the opposite: An X session can only exist inside of a terminal session.

Offline qubicprograms

  • LV3 Member (Next: 100)
  • ***
  • Posts: 61
  • Rating: +0/-0
    • View Profile
Re: Calling all Linux Kernel developers!
« Reply #734 on: February 18, 2013, 03:12:11 pm »
From what I've read, GCC is not a good compiler to use on the nspire.
What compiler would you use instead?

EDIT: Also, a couple other things:
        1. Is there a way to disable the USB debug messages
        2. Is there a way to change the welcome message right before the "linucx login:"
        3. Is there a way to make the X terminal not extend off the screen
        4. Are the X programs supposed to have windows borders (to move them around and close them)
        5. Is there a way to draw pixels in C or C++ code as of yet
« Last Edit: February 18, 2013, 03:50:47 pm by qubicprograms »
I support this kind of hacking: making things do things that those things weren't originally meant to do.