Active Topics

 


Reply
Thread Tools
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#21
yaaay my phones a cute little router! thanks!
__________________
~ teleshoes ~
 
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#22
awesome, got it working in one cmd

Code:
wolke:~/Code/n9/flashing$ ./ubi-init
sudo flasher -l -k kernels/zImage_2.6.32.54-ubiboot-02_040613 -b
flasher 3.12.1 (Oct  5 2011) Harmattan
WARNING: This tool is intended for professional use only. Using it may result
in permanently damaging your device or losing the warranty.

Suitable USB interface (bootloader/phonet) not found, waiting...
USB device found at bus 004, device address 015.
Device identifier: 351669053364706 (SN: N/A)
Found device RM-696, hardware revision 1602
NOLO version 2.3.6
Version of 'sw-release': DFL61_HARMATTAN_40.2012.21-3_PR_006
Sending kernel image (7714 kB)...
100% (7714 of 7714 kB, avg. 30735 kB/s)
Success
waiting for:
  /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part2
  /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part3
  /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part1
..........................
ok!
sudo rmdir /media/n9-root 2>/dev/null
sudo mkdir -p /media/n9-root
sudo mount -t ext4 /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part2 /media/n9-root

sudo rmdir /media/n9-home 2>/dev/null
sudo mkdir -p /media/n9-home
sudo mount -t ext4 /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part3 /media/n9-home

sudo rmdir /media/n9-mydocs 2>/dev/null
sudo mkdir -p /media/n9-mydocs
sudo mount -t ext4 /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part1 /media/n9-mydocs

cat /home/wolke/.ssh/*.pub | sudo tee /media/n9-home/user/.ssh/authorized_keys > /dev/null
sudo chown 29999.29999 /media/n9-home/user/.ssh/authorized_keys
sudo umount /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part2
sudo rmdir /media/n9-root

sudo umount /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part3
sudo rmdir /media/n9-home

sudo umount /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0-part1
sudo rmdir /media/n9-mydocs

spawn telnet 192.168.2.15
Trying 192.168.2.15...
Connected to 192.168.2.15.
Escape character is '^]'.

/ # reboot2
ok
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#23
ubi-init
start console, wait for and mount partitions, copy sshkeys, reboot

ubi-console
load and boot ubiboot kernel without flashing

ubi-cmd
ifconfig usb0 + expect + telnet to run commands in ubiboot maintenance console

ubi-mnt
wait for /dev/disk/by-id/usb-Linux_File-CD_Gadget-0:0, which is what ubiboot maintenance console exports on my machine, and mount mydocs/rootfs/home partitions

ubi-sshkeys
echo ~/.ssh/*.pub > place-that-ubi-mnt-mounts/.ssh/authorized_keys
__________________
~ teleshoes ~
 

The Following 2 Users Say Thank You to wolke For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#24
juiceme, thanks for the wifi tip. it turned out it was actually quite easy:
sync-wifi

{sync-wifi would need a few changes to work for someone else, but it has useful methods for things like generating the gconf keys from a list of pairs ssid=>wpakey}
__________________
~ teleshoes ~
 

The Following User Says Thank You to wolke For This Useful Post:
Posts: 986 | Thanked: 1,526 times | Joined on Jul 2010
#25
finished flash automation and rootstrapping!

without touching the phone beyond initially plugging it in, i flash the firmware/emmc/openkernel, set up devmode+openssh, ssh keys for logging in, and remove the swipe tutorial and mstartup time/lang prompt, and auto-connect to my home wifi.

from there, also without touching the phone, i run my restore scripts
__________________
~ teleshoes ~
 

The Following 3 Users Say Thank You to wolke For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:44.