From: Tony O. <to...@gm...> - 2010-01-27 22:39:16
|
I have a new question that maybe somebody can answer, please. _______________________________________________________ BACKGROUND ::::::::::::::::::::::::: I am changing the Linux kernel: ___________________________ I change board-overo.c and omap2_mcspi.c (in order to send a string through SPI between a Gumstix Overo Palo 43 ______________________________________________________________________________________________________ -with OMAP 3530 in it, acting as a master- to a TI 1278 slave). ____________________________________________________ I put the new Linux kernel (i.e.: uImage) on a SD card on the PALO43. ___________________________________________________________ The PALO 43 boots from a NAND then starts from the SD card my Linux (modified for SPI). ____________________________________________________________________________ The modified Linux crashes, per console display of a log file of boot shown in kermit. ______________________________________________________________________ By disabling all my changes and enabling them one by one, my Linux compiles well but crashes when SD runs it, ______________________________________________________________________________________________ because of: ___________ outb(0, (int *) 0x480021C8); that declares OMAP3530 pins at address 4800 21C8 as SPI pins mcspi1_clk and mcspi1_simo and: ____ outb(0, int*)0x480021CC); that declares mcspi1_somi and mcspi1_cs0 per TI doc. _________ I declared SPI pins two years ago, in an environment different than Gumstix. _______________________________________________________________ (thanks to Charles Ash for answering my previous related question suspecting rootfs, but my question now evolved) _________________________________________________________________________________________________ QUESTION :::::::::::::::::: how do I replace outb(value, port) in a Gumstix environment so that PALO43 boots from NAND, starts the Linux in the SD card, _________________________________________________________________________________________________________ and the Linux on the SD card doesn't crash? ______________________________________ Ion A. Beza. __________ |