Author Topic: nspire Linux Questions  (Read 152701 times)

0 Members and 3 Guests are viewing this topic.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #480 on: April 27, 2013, 11:28:37 am »
Quote
BUT, it doesn't seem to MOUNT the drive. I have been using an initrd to test.
If you can mount the drive with mount /dev/sda<whatever> <whereever> and it doesn't work with kernel <whatever> root=/dev/sda<whatever>, I can't help you.
But you can try the following:
Code: [Select]
mount /dev/sda<whatever> /media
mount -t devtmpfs none /media/dev
mount --bind /proc /media/proc
mount --bind /sys /media /sys
chroot /media[/quote]

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #481 on: April 27, 2013, 11:33:32 am »
Okay well I type mount --help and it prints a huge block text. My dad has tried to set environment variables to allow for it NOT to print it all at once, unfortunately it doesn't work. Bleh
Keep trying.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #482 on: April 27, 2013, 11:34:03 am »
mount --help | less ?

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #483 on: April 27, 2013, 01:39:16 pm »
Tried.
Keep trying.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #484 on: April 27, 2013, 02:06:20 pm »
Did it work? Also, why do you need to read mount --help?
If you want to know how to use it, you can read http://linux.die.net/man/8/mount, too.

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #485 on: April 27, 2013, 04:00:05 pm »
Vog, I was hoping the solution to the problem would apply to everything.
Say I DO get USB working (hypothetically), what would I have to do to boot into it? and is it possible to start from the initrd and then boot into the drive?

Well I've tried what you've suggested and I just can't seem to get it to mount. It may be a problem with my kernel, drive, (I've tried multiple), or even my newer calc model
« Last Edit: April 27, 2013, 04:23:22 pm by Dapianokid »
Keep trying.

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #486 on: April 27, 2013, 04:01:27 pm »
It (kind of) is. You just have to change "/" to the mountpoint of the drive, which chroot does.
« Last Edit: April 27, 2013, 04:01:34 pm by Vogtinator »

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: nspire Linux Questions
« Reply #487 on: April 27, 2013, 04:37:46 pm »
Ooooh I believe I see the problem! (BTW read the above post by me)

My fstab has some very outdated filesystem listings. I need an initrd of a very new build or xconfig, and then I can set things up to my liking. :)
Keep trying.

Offline kaimano

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 5
  • Rating: +0/-0
    • View Profile
Re: nspire Linux Questions
« Reply #488 on: May 06, 2013, 07:59:01 am »
Hi everybody

I've tried to boot with many rootfs on USB (Debian, Ubuntu, Bodhilinux) and all of them gave me an error about "init not found". The USB device is recognized and mounted. Any idea about how to solve this problem?

Thanks and regards

Tiziano

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #489 on: May 06, 2013, 08:05:41 am »
By default the kernel tries to execute /sbin/init.
Does it exist and have the right permissions?

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #490 on: August 27, 2013, 04:20:18 pm »
I have no idea how to compile my own version.. can someone compile a kernel with support for 'screen'? to interact with my arduino.

or teach me how to do it myself.

Thanks

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #491 on: August 27, 2013, 04:21:59 pm »
Do you get an error message on executing screen? Or does you initrd not include screen at all?
And why do you need screen for your arduino?

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #492 on: August 27, 2013, 04:23:34 pm »
my current version does not have screen. you can communicate with the arduino with screen, if you use cat or echo to the arduino it will reboot, as far as i know screen keeps contact all the time
« Last Edit: August 27, 2013, 04:24:45 pm by floris497 »

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: nspire Linux Questions
« Reply #493 on: August 27, 2013, 04:28:43 pm »
Quote
if you use cat or echo to the device it ail reboot as far as i know
What device reboots?

BTW: Compiling now

Offline floris497

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 210
  • Rating: +8/-0
    • View Profile
Re: nspire Linux Questions
« Reply #494 on: August 27, 2013, 04:29:57 pm »
the Arduino wil reboot with every new contact that is made with it

And Thanks :)
« Last Edit: August 27, 2013, 04:30:19 pm by floris497 »