New Video/Tutorial - Flashing a Stock Z2 to Newest Debian Image (Windows edition)
So you’ve only got a windows machine handy, and you want to flash your Z2 to the newest debian (apt-get! no more cross-compiling!) image with wireless? This video is for you. Full Text after the jump.
You’ll need
- Either Aliosa27’s 1gb or 2gb disk image posted to the SF page.
- Aliosa27’s latest oe userland image
- phsydiskwrite (I recommend the GUI version for ease of use)
- The autoflasher script
- (if windows can’t see the fat partition) Windows ext2 filesystem driver
Ready?
- First, flash the zipit. Extract the autoflasher bundle to a fat16 formatted memory card
- Open Aliosa27’s wireless+x+audio.tar.gz file, and copy out the /boot/linux-2.6.29 file to your memory card
- Rename this file kernel.bin
- Boot the zipit with the SD card inserted. If this does not start the linux flash, go to settings->reset to default and it should soft-reset
- Some SD cards are reported to not work, or not always be seen by the zipit. Try both with and without the power cable plugged in
- The z2 will boot linux and copy the wifi firmware to the sd card before flashing linux to the Z2
- Copy off the 2 wireless firmware files gspsi.bin and gpspsi_helper.bin to a folder, you will copy these back to the memory card after we write the image
- IMPORTANT — rename helper_gspi.bin to be gspi8686_hlp.bin or it will not load later!
- Extract the 1/2gb image to a folder
- Extract phsydiskwrite to a folder
- Insert your microSD card into the computer (adapter, usb stick, etc)
- Run phsygui.exe from within the folder you extracted psydiskwrite to (requires .net framework)
- right-click on the drive letter for your SD card, select the first menu item, and then select the 1/2gb image you extracted earlier (.img)
- After it writes, safely remove the disk then plug it back in. if windows can see the fat partition copy the firmware files to it
- If windows cannot see this fat partition, congratulations! Windows sucks! Dowload the ext2 filesystem driver, run it, then copy the firmware files over to /lib/firmware/notlibertas/ (yes notlibertas, the fat filesystem is mounted as /lib/firmware/libertas so you can’t use that)
- Insert the sd card into the Z2, and boot. Login as root, password debian. Congrats! You’ve got debian on the zipit!
- If windows couldn’t see your fat32 partition, copy the firmware files from /lib/firmware/notlibertas to /lib/firmware/libertas. You may need to run fsck if linux can’t see the files.
- Reboot, and you should have wireless device when you type iwconfig. Configure the wireless settings, and you’re ready. I like to
apt-get install ssh
right away, as that’s what I use most of all. Ahhhhhhh! Doesn’t it feel refreshing to install new software to the Z2 without cross-compiling? - Install ssh/sshd with
apt-get install ssh
You’ll also have to force-move the real start-stop-daemon back in place withmv /sbin/start-stop-daemon.REAL /sbin/start-stop-daemon