Jump to content


Photo

Debian On An Sd Card


  • Please log in to reply
326 replies to this topic

#16 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 21 October 2010 - 02:20 PM

Yep, I got Jaunty booting rather than Maverick, but was still Ubuntu on Pandora :)

My posts always seem to be hard to follow; perhaps I should take a bit more time to think about what I'm typing, rather than just a brain dump ;)
Though I had wondered why you had quoted a post I did a couple days ago, rather than the one this morning where I mentioned I got it working!

#17 xopher

xopher

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Where I am

Posted 21 October 2010 - 05:20 PM

I got it to boot but it was from the original Ubuntu extend you posted some time ago. I couldn't get GDM to start. Going to get the new extend you posted because I'm guessing you did some fixes in there? Running at it again.... btw thanks for the work and help.

EDIT: ok new image starts gnome, I must've done something wonky, no mousing (nubs) and I didn't do the touchscreen steps but further along now.... :)

Edited by xopher, 21 October 2010 - 10:07 PM.


#18 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 21 October 2010 - 11:17 PM

For the lazy, here's a tarball of the Jaunty Ubuntu release ... just extract on an ext2/3 formatted SD card and boot.
http://stuckiegamez.co.uk/apps/pandora/Debian/jaunty-ubuntu-sd.tar.gz

Touchscreen doesn't quite work as you'd expect.. it seems to think it's a trackpad for some reason.. I'm sure there's some setting deep in Ubuntu's settings structure to change this, but I don't have the time to fiddle with it much.

Working on getting Lucid running just now, then onto Maverick again.. after that, I'll pick one of the better ones and run with that and Debian.

#19 xopher

xopher

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Where I am

Posted 22 October 2010 - 12:00 AM

For the lazy, here's a tarball of the Jaunty Ubuntu release ...

Touchscreen doesn't quite work as you'd expect.. it seems to think it's a trackpad for some reason.. I'm sure there's some setting deep in Ubuntu's settings structure to change this, but I don't have the time to fiddle with it much.


Just got home and was going to muck with the touch screen. I'll be lazy and grab this and try to get other things to work, I don't expect much except for fun.

#20 paulguy

paulguy

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 413 posts
  • Gender:Male
  • Location:Buffalo, NY
  • Interests:Things

Posted 22 October 2010 - 05:50 AM

I messed with debian on an SD card a few months ago. Much less smooth than you people are experiencing, I had a hell of a time because debootstrap didn't quite work, but I coaxed the system in to booting up and finished installing packages manually, as well as getting wireless (not with built in but with a dongle that died a couple days later) by downloading and installing debs one by one in the correct order by following dependencies on the debian packages browser on their site. That sucked but it was cool while it worked (couldn't use it for much without a network connectiion). I even got the screen to kinda work, forget how, but I couldn't get it to calibrate so I couldn't touch the far edges, but it was in absolute mode. X11 seemed super slow, though, even with using omapfb. I didn't bother with sgx but copied a few pandora scripts over so I could get LEDs, charging and nubs and a few other things. Mostly usable aside from slowness, screen calibration and no built in wifi.

Edit: not sure if I still have it. One of my cards recently fell victim to the "randomly corrupt to hell" bug and the filesystem couldn't be salvaged, but I forget which card that was... I think debian is on the 4GB one and the corrupted one I know was the 32GB one so I imagine I still have the image, but it's some couple GB.

Edited by paulguy, 22 October 2010 - 05:52 AM.


#21 Canguy

Canguy

    GP32 User

  • Members
  • PipPipPip
  • 74 posts

Posted 22 October 2010 - 09:55 PM

For the lazy, here's a tarball of the Jaunty Ubuntu release ... just extract on an ext2/3 formatted SD card and boot.
http://stuckiegamez....buntu-sd.tar.gz

Touchscreen doesn't quite work as you'd expect.. it seems to think it's a trackpad for some reason.. I'm sure there's some setting deep in Ubuntu's settings structure to change this, but I don't have the time to fiddle with it much.

Working on getting Lucid running just now, then onto Maverick again.. after that, I'll pick one of the better ones and run with that and Debian.



Root password?

#22 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 23 October 2010 - 12:56 PM

There isn't one on that, it's scrambled as default on an Ubuntu install, so use sudo.

The account on it is.
user: ubuntu
pass: pandora

#23 Canguy

Canguy

    GP32 User

  • Members
  • PipPipPip
  • 74 posts

Posted 23 October 2010 - 03:28 PM

There isn't one on that, it's scrambled as default on an Ubuntu install, so use sudo.

The account on it is.
user: ubuntu
pass: pandora


Sorry, forgot about that. My rootfs wouldn't start without using a maintenance shell (which requires a root password) so I had to use Angstrom to do the fsck.

Thanks for all of this! Can't wait until it is usable.

Canguy

#24 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 23 October 2010 - 08:50 PM

Quick status update...

Lucid seems to have issues with the sgml-data package - it causes apt to die with Illegal Instruction, and won't progress further. I had thought it was going to be a bit twitchy as apt kept randomly segfaulting while downloaded packages anyway... so, forget about Lucid for the time being.

I'm just transferring a minimal install of Maverick to an SD card just now ( the only seed that rootstock seems to allow me to do, for some reason. )
I'll get that to pull in ubuntu-netbook via a chroot and see if that works any better.. failing that, Jaunty's all you're going to get, it seems.

Either way, Debian works, so I'll refocus my efforts on getting that up to speed once I've finished testing Maverick.

#25 xopher

xopher

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Where I am

Posted 23 October 2010 - 09:56 PM

Lucid seems to have issues....


I grabbed the rootfs of 9.10 for the n900, it boots, again no wifi, touchscreen coordinates are inverse, behaves differently than the 9.04 version you've been working on but 9.10 does boot if you want to check that out it's here: http://mohammadag.xc...TUbuntu.tar.bz2, I applied the pandora keymap in x and used the angstrom kernel. Touchscreen is annoying

In the 9.04 I got the wlan0 to be seen by iwconfig but not ifconfig, it gets cranky (freezes). I'll play with the debian now also.

EDIT: I'm messing with the 10.10 kubuntu image now. It works with the Nintendo USB ethernet adapter. I've installed ssh and have been plugging away at it. I've seen keyboard active outside of X, and have had the touchscreen move but it is seriously erratic. If I get any further with something you can at least log into physically I'll share if no one else has yet. Bluetooth is also working if you're inclined to set up a PAN connection you can get a terminal session

EDIT AGAIN!!! I have keyboard and mouse input on Mavrick, mouse behaves identical to Stuckie's Jaunty rootfs....3 minutes to get to the desktop....yikes

EDIT AGAIN: Seems the touchscreen is being recognized as 2 input devices....mouse0 and event5. The mouse0 is only recognized on the lower half of the screen and the touchpanel (event5) is in total reverse for it's coordinates. I'm using evdev as the driver for the touchscreen. Anyone have any suggestions?

EDIT: I have WIFI (with led)!!!!! :) I am finding this page very helpful..... http://vminko.org/ge...manuals/pandora and I was led there by this page..... http://www.gp32x.com...rocnetwireless/ It's 3:15AM I should get to sleep

Recap:

Working
---------
Bluetooth
wifi
keyboard
touchscreen (inversed coordinates)
leds

Edited by xopher, 26 October 2010 - 07:28 AM.


#26 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 26 October 2010 - 11:29 PM

Wow, very nice!

Unfortunately, work got in the way again so I've still got a half-finished Maverick install on my Pandora at the moment :( Work is going to be utterly mental the next month as well, so I'm not sure how much time I'll have to continue playing with it, but seems you've got a hellova lot of stuff sorted already :)

In regards to the touchscreen, I can fix that :)
You'll need to use the xserver-xorg-input-tslib driver instead of evdev.
You'll also need to grab the libts-bin suite, and set up your .profile as I've mentioned in the first post of this thread.
I'd check if /dev/event/input7 exists .. as that should be the touchscreen from what I've seen it being identified as.. if it is actually event5, you'll obviously need to put this in properly to the .profile.
Once you get it configured via launching ts_calibrate as root, that should be it working properly.

If ts_calibrate is being a bitch, as it was with me and why my first image has a root password set, if you sudo su and then manually export the TS arguments into that shell, it should give ts_calibrate enough of a hint what to do. At any rate, you'll likely need to log out and back in to refresh X's settings.

Hope that helps, and congrats on getting this far.. it's fun meddling around with things like this, isn't it? ;)

#27 xopher

xopher

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Where I am

Posted 27 October 2010 - 01:39 PM

Hope that helps, and congrats on getting this far.. it's fun meddling around with things like this, isn't it? ;)


Thanks and yes. It is like an awesome puzzle game. :) I've been kicking around the idea of tinkering with Maemo now. Unfortunately if I have success with that I can only post a tutorial. I don't want to get in hot water (unless the company is worth sitting in hot water with) for distribution. I'll try your hints for the touchscreen. I'll either make progress or post my progress when I really feel stumped for someone else to kick it about. :)

#28 xopher

xopher

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Where I am

Posted 02 November 2010 - 03:21 AM

Quick update here on the Kubuntu Maverick image. I have the touchscreen working properly now (well it follows touch, no clicking yet)!! Getting a little excited . I have all inputs recognized now. Here is the output for ls on /dev/input:

by-path event0 event1 event2 event3 event4 event5 js0 js1 js2 mice mouse0 touchscreen0 uinput

Seems the problem I'm having at this point is the wireless. dmesg says about it:

"[ 52.769902] ADDRCONF(NETDEV_UP): wlan0: link is not ready"

I'm still going; and once I solve these two things I think I may finally be able to tar a rootfs and share.

Spoiler

Spoiler

Spoiler



edited: awesome grammar skills and, I just heard sound, sound is working, now input via touchscreen is working.....it is quite slow in reacting, haven't tried a right-click yet. There are still a few more quarks also, one being I have to log into the session it kicks me out then the 2nd time it logs in fine.

Edited by xopher, 02 November 2010 - 04:56 AM.


#29 Stuckie

Stuckie

    GP Mania

  • GP32 Hardcore
  • PipPipPipPipPip
  • 432 posts
  • Gender:Male
  • Location:Tired, and sleeping in the basement...

Posted 02 November 2010 - 08:50 AM

Very nice!
I'm still a bit behind you in terms of getting my own image up and running.. I'm still at the lack of input stage due to driver hiccups ( that and it sometimes decides it doesn't feel like booting fully, throws a kernel panic, or just stops midway and only a CTRL+ALT+DEL from my USB keyboard will cause it to do anything much )

Though looking at those pics, you've got the ubuntu-netbook set going, I might set mine off again to do a ubuntu-desktop set; for choice and all that ;)

The double login thing may be due to memory.. did you set aside some swap space at all? I noticed when fiddling with Debian you really need swap space or things die pretty quick in much the same manner you describe. Damn these desktop distributions are becoming quite heavy, aren't they? ;)

#30 xopher

xopher

    GP32 Hardcore

  • GP32 Hardcore
  • PipPipPipPip
  • 226 posts
  • Gender:Male
  • Location:Where I am

Posted 02 November 2010 - 03:05 PM

sometimes decides it doesn't feel like booting fully, throws a kernel panic, or just stops midway and only a CTRL+ALT+DEL from my USB keyboard will cause it to do anything much)

The double login thing may be due to memory.. did you set aside some swap space at all? I noticed when fiddling with Debian you really need swap space or things die pretty quick in much the same manner you describe. Damn these desktop distributions are becoming quite heavy, aren't they? ;)


I have the same issues at boot for sure, I reboot and wait it out. I also have the ureadahead issue it makes boot take a little longer but patience. I found that when you think it's stuck a good bit of the time if you exercise patience 95% of the time it (s-l-o-w-l-y) works through whatever it's doing.

When I look at the .xsession-errors it complains about unconnected dbus items and no "PowerDevil" profile. I'll watch the processes from htop while ssh'ed in to see if memory is an issue. My tarball didn't start bluetooth or wifi upon first boot so after attempting to log into X it crashed back to greeter, I logged in again became impatient, rebooted and the devices came up, next boot from tarball rendered me a blackscreen, 3rd boot able to ssh in again....logging into X PowerDevil complains again then I get the desktop. So it seems to be in the same state as my original setup. It may require some extra booting, a USB LAN adapter for ssh, usb keyboard, or a bogus xorg.conf to kill X on boot to ctrl+alt+Fn+1 (going to first tty but keymap is off some Fn combos still don't work) to really interact with it but I'll upload my progress. Do you think after that I should begin a new thread for Maverick Kubuntu or keep it all here?