To gain root, connect via UART and Ground pin#29 See:http://www.rootwink.com/viewtopic.php?f=4&t=72
Code: Select all
setenv bootargs 'noinitrd console=ttyAM0,115200 rootfstype=ubifs ubi.mtd=5 root=ubi0:rootfs rw gpmi init=/bin/sh';
nand read ${loadaddr} app-kernel 0x00400000 && bootm ${loadaddr}
Enable SSH
Note: the entire blob below should be able to copy/paste at once but suggest copy/pasting line by line.
Code: Select all
mount -a
ubiattach -p /dev/mtd3
mount -t ubifs ubi1:database /database
touch /database/ENABLE_SSH
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEA2nCGCGeaPSWseFqi/ctWeamK56qlBmIcr0L9K0ZaAq43BHfITtLL7mteZMJYSn8PX3JMKNFJiCvvSW8gla2s4aBqb9F1EjazDKJnWKyzzdgEeUqr0T7t2pltvxxoZ/z/wEVMB5AKD9TjjTXRSoEBF7AJ/OfhjKHQiO5TLWPlUtk= rsa_1024_no-plus' > /database/authorized_keys
chmod 600 /database/authorized_keys
sleep 3
# Optional: enable UART login
sed -i 's/^#ttyAM0/ttyAM0/g' /etc/inittab
# Optional: remove password for UART login (allows you to simply press enter when prompted for root password at root user serial UART login)
sed -i 's/^root.*$/root::0:0:99999:7:::/g' /etc/shadow
# Work-around for update from pre-wink-snafu update level
sed -i 's/\([0-9]\)"$/\1 --insecure"/g' /root/platform/platform.config
Note: For best results, this should be done while phone device is connected to the same 2.4ghz access point the hub will connect to. Also be sure bluetooth is ON.
Power off and back on device
Add device to wink account via wink app and update via app when prompted
At least as of this post, root will persist though standard updates via the app.
At this point, the hub should be at "rootfs" 02.68 and "updater-rootfs" 00.10.
Optional: Update "updater-rootfs" from 00.10 to 00.22 (I am not aware of any negatives... or positives... in doing this)
Code: Select all
cat << EOF > /database/cf_url
sw_pkg_url=https://hub-updates.winkapp.com/00.01/02.68/upgrade_00.01.txt
md5_manifest=346046b0ce311d3b6342fdf033261594
EOF
cat << EOF > /database/cf_cert
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAumZE0qsNgtTQNCOhqx8+
+3DQG33HIvgqdPJ9qa4A9rdtuTADJ3FUnO53+EQYFuZaZ8RK76DQddtqCUzRyra7
JI9RTXxYX4VWxTMEfKMoi2R79BFPOXg61Q3ZCZ4RP2gz1Mkso59ULNziLmeSQwSK
udeTSmkcLUql9Ygtx8iro+JiFBr6wwyLFm+KblkRvk7aYjctdJvGOGUfoYKyKQJz
5mXQiHoCqpkqdNL436paQjsxIdcEqu+iRl8n2BIgDqxHg1ZTdiNe6NIyohkaG97r
Rfzv2LZQ9zgfdQfGArwc9B+AGyKFJ4FgW0SdCmZSNrpqoEVCS1Xuw8QLe6oraMuC
MwIDAQAB
-----END PUBLIC KEY-----
EOF
/root/platform/upgrade.sh