Thursday, January 27, 2005

Video and ROM

Lots of stuff working now!
I changed alios to copy the VGA bios from the ATMEL flash to 0xF000. Now alios can call the bios and initialise the video!
Next problem was getting the keyboard to work. I eventually found that I needed to send a self test command to the keyboard controller. After that Linux found it and took over.
So now, we have a working VGA console. Only problem is, I can't get a good framebuffer working. I can only use the 16 colour vga one, as the GD5440 framebuffer needs a PCI bios :(
Now to the Intel Flash. I found that the MTD drivers will read and write this, once I've mapped it into physical memory. The flashcp program will write to it, but only for the 1st 3 erase blocks. This had me stumped for a long time - eventually i found that it was because I didn't map all of the flash into memory - doh!
So now I can put the kernel and initrd into the Intel flash and now the winterm boots without a PCMCIA card!

Monday, January 17, 2005

Accessing the internal ROMS

I've now managed to read data from 2 of the 3 internal Flash ROMS
This is done by using the Memory windows to map the ROMS into CPU address space.
The Intel 2M byte is connected to ROMCS1 and the 4M byte Toshiba is connected to ROMCS2
The 256Kbyte Atmel is connected to ROMCS0

Update: I have now programmed Alios into the Atmel Flash so now the system starts to boot from internal ROM! Now need to burn the kernel and initrd images into the intel flash and boot it.
I've sucessfully read the intel flash using the linux mtd subsystem, but as yet i can't program it.
I think I need to write some software to program it (similar to the wrflash prog supplied with alios).