by limor » Wed Nov 11, 2009 1:55 am
by limor
Wed Nov 11, 2009 1:55 am
I spent a couple of hours this evening with the board. Didn't get far but decided bo blog what i did for posterity.
-------------
The board comes pre-flashed with a super bootloader and a basic linux kernel. "Super" because it can sense what is connected to the board and flash the board's 1mb memory via Ethernet or serial.
Any special drivers or software that I'd like to run on the board, needs to be on a USB memory stick formatted as Linux Ext3 filesystem and containing the root file system with all software and files that are needed. The pre-loaded linux boots up when the board is switched on and the last thing it does is look for the USB memory stick. At that point, if the stick is not there, it will halt. Otherwise it will provide a shell prompt.
I didn't format a memory stick yet as Ext3 and plug it into the board, therefore as you can see, the boot process halts "Waiting for root device /dev/sda1..."
To connect the board to the PC, I followed instructions from the bifferos site regarding how to connect the board to the PC serial console using a Prolific USB-serial cable:
http://sites.google.com/site/bifferboard/Home/howto/connect-to-serial-console
My laptop is a MacBook (capable of running XP via Parallels on rare occasions). At first I didn't realize that without the driver for the Prolific chip PL-2303, which is on the USB-serial cable used in this case, neither OS/X nor XP will be able to communicate with the cable or the Bifferos.
So after plugging the cable and seeing that no new serial device was dynamically created on the MacBook (
ioreg -c IOSerialBSDClient ) I tried to get the communications going with XP running in Parallels.
At which point I realized I'm missing the Prolific drivers.
Here they are for both Windows and Mac:
http://www.prolific.com.tw/eng/downloads.asp?ID=31
In XP I Installed an sourceforge application called realterm but all I got was gibberish no matter what baud rate. This must be some oddity related to Parallels because I then installed the driver in OS/X and use an application called zterm
http://homepage.mac.com/dalverson/zterm/
and communications worked perfectly at 115200 on OS/X
(btw during instalation of the driver it asks for a reboot, which i didn't do and the cable was recognized and all worked so no need for reboot immediately)
zterm works fine, recognizes serial port "usbserial" and console messages spit out after setting the baud to 115200 (see above screenshots of zterm showing the boot sequence text).
----------------
Next comes creating a usb drive with ext3 filesystem that will serve as root-file-system. The rootfs that Bifferos provides has very basic linux commands (busybox).
http://bifferos.bizhat.com/firmware/
There are couple of other options: Debian, Gentoo, and Slackware that community members have successfully installed on the board.
http://sites.google.com/site/bifferboard/Home/desktop-linux-distributions
After googling for a bit, it seems that to get a macbook to create an ext3 partition on a usb stick is note trivial.
So the given the XP / Parallels option, Google search comes up with a sourceforge project called GParted which is a general disk formating program but the advantage is that it can run off a USB stick or CD as a stan-alone bootable linux.
So the plan now is to take 2 USB sticks. one will become a bootable linux that will run GParted and the other will be the Ext3 root file system to be plugged into the Bifferos board. The GParted site says to install on XP a program called "live usb helper" that will automagically format the USB stick as Ext3 and install whatever image
which is a windows application. The program failed to recognize the usb stick when i tried on Vista. It failed to recognize the usb stick when running on XP. So i gave up on it.
instead, there was another windows tool for creating a bootable USB linux
http://unetbootin.sourceforge.net/
Nice thing is that it downloads bootable linux images from a large selection. One of the options was partedmagic.com (which includes gparted). i used parallels running XP to create the linux usb stick.
After reading a bit more I think I will need a full blown linux running on my mac via Parallels hopefully, in order to prepare my rootfs file system and possibly play around with drivers and write my own programs.
I spent a couple of hours this evening with the board. Didn't get far but decided bo blog what i did for posterity.
-------------
The board comes pre-flashed with a super bootloader and a basic linux kernel. "Super" because it can sense what is connected to the board and flash the board's 1mb memory via Ethernet or serial.
Any special drivers or software that I'd like to run on the board, needs to be on a USB memory stick formatted as Linux Ext3 filesystem and containing the root file system with all software and files that are needed. The pre-loaded linux boots up when the board is switched on and the last thing it does is look for the USB memory stick. At that point, if the stick is not there, it will halt. Otherwise it will provide a shell prompt.
I didn't format a memory stick yet as Ext3 and plug it into the board, therefore as you can see, the boot process halts "Waiting for root device /dev/sda1..."
To connect the board to the PC, I followed instructions from the bifferos site regarding how to connect the board to the PC serial console using a Prolific USB-serial cable:
http://sites.google.com/site/bifferboard/Home/howto/connect-to-serial-console
My laptop is a MacBook (capable of running XP via Parallels on rare occasions). At first I didn't realize that without the driver for the Prolific chip PL-2303, which is on the USB-serial cable used in this case, neither OS/X nor XP will be able to communicate with the cable or the Bifferos.
So after plugging the cable and seeing that no new serial device was dynamically created on the MacBook (
ioreg -c IOSerialBSDClient ) I tried to get the communications going with XP running in Parallels.
At which point I realized I'm missing the Prolific drivers.
Here they are for both Windows and Mac:
http://www.prolific.com.tw/eng/downloads.asp?ID=31
In XP I Installed an sourceforge application called realterm but all I got was gibberish no matter what baud rate. This must be some oddity related to Parallels because I then installed the driver in OS/X and use an application called zterm
http://homepage.mac.com/dalverson/zterm/
and communications worked perfectly at 115200 on OS/X
(btw during instalation of the driver it asks for a reboot, which i didn't do and the cable was recognized and all worked so no need for reboot immediately)
zterm works fine, recognizes serial port "usbserial" and console messages spit out after setting the baud to 115200 (see above screenshots of zterm showing the boot sequence text).
----------------
Next comes creating a usb drive with ext3 filesystem that will serve as root-file-system. The rootfs that Bifferos provides has very basic linux commands (busybox).
http://bifferos.bizhat.com/firmware/
There are couple of other options: Debian, Gentoo, and Slackware that community members have successfully installed on the board.
http://sites.google.com/site/bifferboard/Home/desktop-linux-distributions
After googling for a bit, it seems that to get a macbook to create an ext3 partition on a usb stick is note trivial.
So the given the XP / Parallels option, Google search comes up with a sourceforge project called GParted which is a general disk formating program but the advantage is that it can run off a USB stick or CD as a stan-alone bootable linux.
So the plan now is to take 2 USB sticks. one will become a bootable linux that will run GParted and the other will be the Ext3 root file system to be plugged into the Bifferos board. The GParted site says to install on XP a program called "live usb helper" that will automagically format the USB stick as Ext3 and install whatever image
which is a windows application. The program failed to recognize the usb stick when i tried on Vista. It failed to recognize the usb stick when running on XP. So i gave up on it.
instead, there was another windows tool for creating a bootable USB linux
http://unetbootin.sourceforge.net/
Nice thing is that it downloads bootable linux images from a large selection. One of the options was partedmagic.com (which includes gparted). i used parallels running XP to create the linux usb stick.
After reading a bit more I think I will need a full blown linux running on my mac via Parallels hopefully, in order to prepare my rootfs file system and possibly play around with drivers and write my own programs.