Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2011, 05:26 PM   #1
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
DRebian

I've "ported" Debian to the IREX DR, by creating a Debian chroot but using the DR's original kernel and userland.

For those who just want to run it, here's what you need:
  • dima_tr's VNC port: https://www.mobileread.com/forums/sho...18&postcount=6 . Install it as usual. Make sure Programs/_vnc/vncviewer exists on the card.
  • The Debian scripts, which are attached to this message. Extract to the SD card as well.
  • A Debian image. A 1G image is available at http://www.mediafire.com/?zoy6f560r26oi8h . Un-gzip it, and give it the filename Programs/_debian/loop . It must have precisely this name. If you want a bigger image or want to make your own, read on.

Programs/debian.desktop will start up Debian. You can exit the VNC session by pressing the menu button, and reconnect by running debian.desktop again (it won't lose your current session). The intelligent refresh works beautifully, so it's actually quite usable, if a bit slow sometimes

For those wishing to create a larger Debian image:
Spoiler:
  • Make a blank image file (e.g. dd if=/dev/zero of=loop bs=1M count=2048)
  • Format it with ext3 (NOT ext2 or ext4) (e.g. /sbin/mkfs.ext3 loop)
  • Loopback mount it (e.g. mount -o loop loop mnt)
  • Fetch the following archive: http://www.mediafire.com/?363pzo5ok5hfbel
  • Extract it to the mounted filesystem (e.g. tar zxf -C mnt debian-squeeze-irex-dr-2011-08-09.tar.gz )
  • Unmount (e.g. umount mnt)
  • Put your new filesystem in Programs/_debian/loop .


For those wishing to create a custom Debian image:
Spoiler:

This image was created with debootstrap. I'm not going to teach you to use debootstrap, but it's quite easy. After debootstrapping the filesystem, I did the following:
  • Installed these packages: wamerican jwm menu xvkbd rxvt tightvncserver synaptic
  • Made these changes to /etc/jwm/jwmrc:
    • <FocusModel> to click
    • <MoveMode> to outline
    • <ResizeMode> to outline
    • <Background> to type="solid", content "white"
    • Added a new tray: <Tray x="0" y="-32" height="200"><Swallow>xvkbd</Swallow></Tray>
  • Set the VNC server's password to (oh-so-secure) "vncvnc" (running vncserver will prompt for this)
  • Connected to VNC to configure xvkbd to disable automatic click (menu->Properties->Automatic Clicking=off)
For the curious, I used VNC instead of connecting to X11 directly to take advantage of the ported viewer having screen-refresh intelligence. Laziness hooray!


For those wishing to port to the DR1000:
Spoiler:
The only changes I expect are:
  • You will have to recompile the ext3, jbd and mbcache kernel modules for the DR1000's kernel.
  • You will need to change the "debian" script to start the server at 1024x1280 instead of 768x1024.


I've included the ext3 module and prerequisites. They were built from sources at http://developer.irexnet.com/iOn/Sou...24-irex.tar.gz . All Debian sources available from http://packages.debian.org/ .

A "screenshot" (I thought a photo would be a bit more honest ):

Changelog
Spoiler:
  • 2011-08-09-3: Mount /tmp to Debian's tmp, to avoid thrashing the SD card.
  • 2011-08-09-2: Made jwmrc a bit more sticky by making the wrapper script rewrite it as necessary.
  • 2011-08-09: Initial release.


My original message here:
Spoiler:
At this point this is just an FYI: I discovered the VNC viewer for the DR, and in particular the fact that it does the screen refreshes automatically. That gave me all the momentum I needed to get a Debian chroot installed to my DR (without it, I'd need significant hackery to make it perform the screen refreshes, and I never managed to get that hackery working the last time I tried). As of this moment, I have Debian running on my DR800. It's all part of my master plan to run Debian on everything.

Mind you, it doesn't make much sense to run Debian on a tablet with electronic paper display ... but ... well, uhh ... I have to run it everywhere :P

Anyway, expect me to post the requisite scripts, screenshots and such here. So far it's working shockingly well
Attached Thumbnails
Click image for larger version

Name:	drebian-gimp-2011-08-09.jpg
Views:	1009
Size:	61.0 KB
ID:	75336  
Attached Files
File Type: zip debian-scripts-irex-dr-2011-08-09-2.zip (820.3 KB, 340 views)
File Type: zip debian-scripts-irex-dr-2011-08-09-3.zip (820.3 KB, 351 views)

Last edited by GregorRichards; 08-09-2011 at 09:20 PM.
GregorRichards is offline   Reply With Quote
Old 08-09-2011, 06:26 PM   #2
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
Great, looking forward to the scripts! Recently another member jonathan_s had similar plans ...
https://www.mobileread.com/forums/sho...debian&page=14
https://www.mobileread.com/forums/sho...debian&page=15

Last edited by fekhner; 08-09-2011 at 06:31 PM.
fekhner is offline   Reply With Quote
Advert
Old 08-09-2011, 07:06 PM   #3
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
I have a long history of "porting" Debian by running it in chroots on already-Linux systems ... my desktop and laptop run Debian natively, but my phone, el-cheapo-Chinapad, Pandora and (now) DR run it by chroots alone ... I love debootstrap so much

I'm uploading images now.
GregorRichards is offline   Reply With Quote
Old 08-09-2011, 09:45 PM   #4
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
somehow I always get an error (Cannot write target file "/Volumes..../debian/loop" Input/output error (5) ) when trying to copy the renamed image "loop" to Programs/_debian/ and then the DR ejects itself ... will try again tomorrow.

Last edited by fekhner; 08-09-2011 at 10:00 PM.
fekhner is offline   Reply With Quote
Old 08-09-2011, 09:54 PM   #5
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
Quote:
Originally Posted by fekhner View Post
somehow I always get an error when trying to copy the renamed image "loop" to Programs/_debian/ and then the DR ejects itself ... will try again tomorrow.
That ... is a little bit too bizarre for me to have any idea what the issue could be, doesn't sound related to my stuff :P
GregorRichards is offline   Reply With Quote
Advert
Old 08-10-2011, 09:29 AM   #6
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Nice work. Can you tell us which config settings you used to build these modules?
rvs is offline   Reply With Quote
Old 08-10-2011, 10:03 AM   #7
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
Finally copying the 1 GB loop file worked by taking out the SD card and putting it in a card reader. Unfortunately, it does not work yet:

In /Programs/_debian

I now have debian, ext3.ko, jbd.ko, jwmrc, (the downloaded 1GB image file renamed as) loop, mbcache.ko, mnt

any ideas what could be wrong ?

Last edited by fekhner; 08-10-2011 at 10:28 AM.
fekhner is offline   Reply With Quote
Old 08-10-2011, 10:15 AM   #8
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
Add this, run it again, and give me the log.txt it produces (or should produce anyway ). log.txt will be in Programs/_debian .

Alternatively, using usbnet, ssh in and run Programs/_debian/debian , then give me the log. (Should be the same as above)

Last edited by GregorRichards; 08-10-2011 at 10:42 AM.
GregorRichards is offline   Reply With Quote
Old 08-10-2011, 10:37 AM   #9
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
thanks! the log.txt file is indeed created but completely empty ... will re-install dima_tr's vnc port and try again.
fekhner is offline   Reply With Quote
Old 08-10-2011, 10:42 AM   #10
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
The log file was empty because I did it wrong :P

Corrected version attached.
Attached Files
File Type: zip debian-scripts-logging.zip (860 Bytes, 331 views)
GregorRichards is offline   Reply With Quote
Old 08-10-2011, 10:45 AM   #11
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
Quote:
Originally Posted by rvs View Post
Nice work. Can you tell us which config settings you used to build these modules?
All I did was take the .config off the device, and add ext3 as a module. Otherwise it's all default. Config file is attached.
Attached Files
File Type: txt config-w-ext3.txt (33.2 KB, 314 views)
GregorRichards is offline   Reply With Quote
Old 08-10-2011, 11:25 AM   #12
rvs
Groupie
rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.rvs has a complete set of Star Wars action figures.
 
Posts: 181
Karma: 364
Join Date: Oct 2009
Device: DR1000s, Hanlin V5
Quote:
Originally Posted by GregorRichards View Post
All I did was take the .config off the device, and add ext3 as a module. Otherwise it's all default. Config file is attached.
Thanks. I suspected as much because I couldn't find the other modules in the config file, but I wasn't sure. I'll try to create the modules for the DR1000 and post them here as soon as I've got it working on my machine.
rvs is offline   Reply With Quote
Old 08-10-2011, 11:30 AM   #13
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
Sweet. If you get it working on the DR1000, I'd love to see a photo

The other modules are just prerequisites for ext3, they'll fall along if ext3 is included.
GregorRichards is offline   Reply With Quote
Old 08-10-2011, 11:41 AM   #14
fekhner
Addict
fekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animalsfekhner is kind to children and small, furry animals
 
Posts: 326
Karma: 6908
Join Date: Sep 2010
Device: DRs, EE, ipad/iphone, Helix
here you go
Attached Files
File Type: txt log.txt (1.2 KB, 310 views)
fekhner is offline   Reply With Quote
Old 08-10-2011, 11:51 AM   #15
GregorRichards
Connoisseur
GregorRichards doesn't litterGregorRichards doesn't litter
 
Posts: 60
Karma: 151
Join Date: Apr 2010
Device: DR800SG
Quote:
mount: mounting /dev/loop0 on /media/mmcblk0p1/Programs/_debian/mnt failed: Invalid argument
Well, this line is definitely the problem ... I suspect that there's something wrong with your image file, but "Invalid argument" isn't the most compelling of error messages. Did you download my 1G image, or make your own?
GregorRichards is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 10:04 PM.


MobileRead.com is a privately owned, operated and funded community.