|  01-03-2012, 07:11 PM | #1 | 
| Connoisseur       Posts: 64 Karma: 669 Join Date: Jan 2012 Device: M92 | 
				
				ssh on Onyx Boox M92
			 
			
			Hi! It would be great if we could run an ssh server on the Onyx Boox M92. I managed to compile dropbear statically linked and run it. There are two problems, though: 
 I have attached the binary (gzipped due to forum restrictions). You additionally need a host key (use your desktop to generate it) and you have to copy your public user key to /root/.ssh/authorized_keys (do not forget to create the directory). | 
|   |   | 
|  01-05-2012, 05:19 AM | #2 | |
| Connoisseur          Posts: 62 Karma: 1114 Join Date: Jan 2012 Device: Onyx Boox M92 | Quote: 
  ) but it should be possible to kexec to a new kernel with with devpts support (if kexec is unsupported, it could be compiled as a module). I don't think there are sources for the last kernel on https://github.com/onyx-intl/ , so we should probably ask Onyx to put them online. I have little time right now, but I'd like to give this a try using qemu... EDIT: The kernel is probably the stock one from Freescale, I'll give it a look. Last edited by FDD; 01-05-2012 at 07:53 AM. | |
|   |   | 
|  01-05-2012, 07:46 PM | #3 | |
| Connoisseur       Posts: 64 Karma: 669 Join Date: Jan 2012 Device: M92 | Quote: 
 Another thing to try is to use BSD style pseudo-terminals, i.e. create the files /dev/ptyp... and /dev/ttyp... | |
|   |   | 
|  02-02-2012, 10:53 AM | #4 | 
| Connoisseur          Posts: 62 Karma: 1114 Join Date: Jan 2012 Device: Onyx Boox M92 |   
			
			Good news! I managed to compile and use the serial gadget module, so it is now possibile to connect to the M92. I'll try to polish the whole thing a bit and upload it in the evening. | 
|   |   | 
|  02-03-2012, 06:29 AM | #5 | 
| Connoisseur          Posts: 62 Karma: 1114 Join Date: Jan 2012 Device: Onyx Boox M92 | 
			
			Here we go. DISCLAIMER: you are on your own, so be careful.   Also, I tested this only on the original v1.6 firmware, but could (should?) run on the other versions. Unzip the attached zip file somewhere in your M92 or SD card; you will find two directories, gserial and allow_root. To login in your M92: 
 To logout press Control+D or type exit. If you want to login again, re-run the start_usb_serial.oar command. When you are done, logout then execute stop_usb_serial.oar without disconnecting the USB cable. The usual popup will appear. So now you want to login as root, don't you?  Go to the allow_root directory and run root_pw_clear.oar; now you can login as root, no password asked. To restore everything as it was, run root_pw_restore.oar (will only work if you don't change the root password by hand, but if you can do that, I assume you can restore everything by yourself.) Also, does anybody knows what the original root password is? Be careful and have fun! EDIT: The archive was updated because I put the wrong module in there, as you can read below. Sorry guys! Last edited by FDD; 02-13-2012 at 09:25 AM. | 
|   |   | 
|  02-11-2012, 01:38 AM | #6 | 
| Addict            Posts: 251 Karma: 214890 Join Date: Sep 2006 Device: none | |
|   |   | 
|  02-12-2012, 11:27 AM | #7 | 
| Connoisseur       Posts: 64 Karma: 669 Join Date: Jan 2012 Device: M92 | 
			
			I am getting the same error. Can we somehow force the kernel to load the module? Why does it work for you, FDD?
		 | 
|   |   | 
|  02-13-2012, 09:27 AM | #8 | 
| Connoisseur          Posts: 62 Karma: 1114 Join Date: Jan 2012 Device: Onyx Boox M92 | |
|   |   | 
|  02-13-2012, 08:09 PM | #9 | 
| Addict            Posts: 251 Karma: 214890 Join Date: Sep 2006 Device: none | 
			
			It works fine now.
		 | 
|   |   | 
|  02-14-2012, 04:27 PM | #10 | |
| Connoisseur       Posts: 64 Karma: 669 Join Date: Jan 2012 Device: M92 | Quote: 
 By the way, you can use the program called "cu" to connect to a serial console under linux: cu -l /dev/ttyACM0 -s 115200 | |
|   |   | 
|  02-16-2012, 01:04 AM | #11 | |
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | Quote: 
 It runs on my A62. Could you compile g_ether.ko (please!) P.S. I can't run Qt applications from 'app' user: Qt for Embedded Linux data directory is not owned by user 16 Last edited by sergeyvl12; 02-16-2012 at 12:37 PM. | |
|   |   | 
|  02-16-2012, 12:36 PM | #12 | |
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | Quote: 
 http://pbsdk.vlasovsoft.net/files/onyx_dropbear.zip BTW today I managed to turn on wifi without starting a web browser. I'll update this package with wifi scripts soon... "the kernel does not support the devpts filesystem, which is important for ssh login" Not so important ... we still can work using ssh -T ... Last edited by sergeyvl12; 02-16-2012 at 12:41 PM. | |
|   |   | 
|  02-16-2012, 04:56 PM | #13 | 
| Wizard            Posts: 3,067 Karma: 18821071 Join Date: Oct 2010 Location: Sudbury, ON, Canada Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633 | 
			
			Is it definitely the case that the kernel doesn't support devpts?  On my Pocketbook device, the kernel supports it, but the OS wasn't set up for it.  I got root access and fixed that by changing the permissions on /dev/ptmx and by adding the option gid=5 for devpts in /etc/fstab.  Perhaps that's all that is necessary on the Onyx devices, as well.
		 | 
|   |   | 
|  02-17-2012, 05:37 AM | #14 | |
| ebook fan            Posts: 735 Karma: 2528718 Join Date: Dec 2010 Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch | Quote: 
 Last edited by sergeyvl12; 02-17-2012 at 05:45 AM. | |
|   |   | 
|  02-17-2012, 05:42 AM | #15 | |
| Connoisseur       Posts: 64 Karma: 669 Join Date: Jan 2012 Device: M92 | Quote: 
 | |
|   |   | 
|  | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| python on pocketbook ... and on onyx boox m92 too! | jbaach | Onyx Boox | 19 | 04-16-2012 07:34 PM | 
| Pocketbook 903 / Onyx Boox M92 comparison | jbaach | PocketBook | 8 | 03-04-2012 08:40 AM | 
| Pocketbook 903 / Onyx Boox M92 Vergleich | jbaach | PocketBook | 7 | 03-02-2012 02:02 PM | 
| Onyx Boox M92 available in November | hansokumake | Onyx Boox | 47 | 12-20-2011 05:46 AM | 
| Onyx Boox m92 / Pocketbook 903 Vergleich | jbaach | Andere Lesegeräte | 0 | 12-13-2011 12:22 PM |