Skip to contentSkip to conversation

problems with NFS root for ADS860

DISCUSSION Jack Liu 2 participants 2 messages Mar 11, 2004

lore
Share & tools
lore

Jack Liu

author
#0 lore raw

Dear all
Currently I am porting linux to a new MPC8241 board. I am using
Motorola sandpoint porting code as a reference. So I modified ppc/platforms/Sandpoint*.* file to adapt to the new board. I just replace these four files(I am using 2.4.21 ppc kernel).
Also, I am using MPC8241's UART.So I also changed setup_io_mappings
function to

	"io_block_mapping(0xfc000000, 0xfc000000, 0x02000000, _PAGE_IO); "

Do I still need to make other changes? In my understanding , porting
linux in ppc platform is register the following files.

	ppc_md.setup_arch = sandpoint_setup_arch;
	ppc_md.show_cpuinfo = sandpoint_show_cpuinfo;
	ppc_md.irq_cannonicalize = sandpoint_irq_cannonicalize;
	ppc_md.init_IRQ = sandpoint_init_IRQ;
	ppc_md.get_irq = sandpoint_get_irq;
	ppc_md.init = sandpoint_init2;

	ppc_md.restart = sandpoint_restart;
	ppc_md.power_off = sandpoint_power_off;
	ppc_md.halt = sandpoint_halt;
	ppc_md.time_init = NULL;
	ppc_md.set_rtc_time = NULL;
	ppc_md.get_rtc_time = NULL;
	ppc_md.calibrate_decr = todc_calibrate_decr;

	ppc_md.find_end_of_memory = sandpoint_find_end_of_memory;
	ppc_md.setup_io_mappings = sandpoint_map_io;

Am I correct on this? Please help me on this.

Best regards
Jack

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 6 lines · In message <[email protected]> you wrote:

Currently I am porting linux to a new MPC8241 board. I am using
Motorola sandpoint porting code as a reference. So I modified ppc/platforms/Sandpoint*.* file to adapt to the new board. I just replace these four files(I am using 2.4.21 ppc kernel).
Also, I am using MPC8241's UART.So I also changed setup_io_mappings

And what has all this to do with "problems with NFS root for ADS860" as you write in the subject???

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] The human race has one really effective weapon, and that is laughter.
- Mark Twain

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/