* Linux Image @ 2002-08-20 0:36 Aman 2002-10-17 16:40 ` Wolfgang Denk 0 siblings, 1 reply; 4+ messages in thread From: Aman @ 2002-08-20 0:36 UTC (permalink / raw) To: linuxppc-embedded Hi All I have an rom monitor code without ethernet support running on PPC440GP. Is it possible to download a linux image to the board using the Kermit protocol. If so what type of linux image has to build for that. Thanking you in advance Regards Aman ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Linux Image 2002-08-20 0:36 Linux Image Aman @ 2002-10-17 16:40 ` Wolfgang Denk 2002-11-03 11:27 ` Base Baud Calculation Aman 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Denk @ 2002-10-17 16:40 UTC (permalink / raw) To: Aman; +Cc: linuxppc-embedded In message <001701c247e1$af6bb380$370da8c0@aman> you wrote: > > I have an rom monitor code without ethernet support running on PPC440GP. Is Install PPCBoot. > it possible to download a linux image to the board using the Kermit > protocol. If so what type of linux image has to build for that. Yes, this is possible. PPCBoot supports kermit binary protocol (use the "loadb" command). Umm... but PPCBoot also supports download over ethernet, so you probably will not use "loadb". Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de Testing can show the presense of bugs, but not their absence. -- Edsger Dijkstra ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Base Baud Calculation 2002-10-17 16:40 ` Wolfgang Denk @ 2002-11-03 11:27 ` Aman [not found] ` <000c01c28330$29c684a0$370da8c0@aman> 0 siblings, 1 reply; 4+ messages in thread From: Aman @ 2002-11-03 11:27 UTC (permalink / raw) To: linuxppc-embedded Hi How is the base_baud in linux calculated?. Thanking you in advance Regards Aman ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <000c01c28330$29c684a0$370da8c0@aman>]
* Re: Base Baud Calculation [not found] ` <000c01c28330$29c684a0$370da8c0@aman> @ 2002-11-03 19:29 ` Eugene Surovegin 0 siblings, 0 replies; 4+ messages in thread From: Eugene Surovegin @ 2002-11-03 19:29 UTC (permalink / raw) To: Aman; +Cc: linuxppc-embedded Aman, At 03:57 AM 11/3/2002, you wrote: > How is the base_baud in linux for PPC 440GP calculated?. Here is the piece of code I use on our custom 440GP board (works also on Ebony): static void __init XXXXXXX_serial_init(void){ struct serial_struct serial_req; int baud_base; /* Determine baud base */ unsigned long cpc0_cr0 = mfdcr(DCRN_CPC0_CR0); if (cpc0_cr0 & 0x00400000){ /* External UART0 clock (eval board uses 6*1.8432 MHz clock) */ baud_base = (6 * 1843200) / 16; } else { /* Internal UART0 clock */ int uart_div = ((cpc0_cr0 & 0x001f0000) >> 16) + 1; baud_base = (XXXXXX_clocks.plb * 1000000) / uart_div / 16; } /* Setup ioremapped serial port access */ memset(&serial_req, 0, sizeof(serial_req)); serial_req.line = 0; serial_req.baud_base = baud_base; serial_req.port = 0; serial_req.irq = UART0_INT; serial_req.flags = ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST; serial_req.io_type = SERIAL_IO_MEM; serial_req.iomem_base = ioremap64(PPC440GP_UART0_ADDR, 8); serial_req.iomem_reg_shift = 0; if (early_serial_setup(&serial_req) != 0) { printk(KERN_ALERT"Early serial init of port 0 failed\n"); } } One comment, XXXXXX_clocks - structure that holds different clocks in MHz. For example, XXXXXX_clocks.plb is equal to 133. Usually, this value can be hardcoded, but I find this way more convenient, especially when running the same image on different boards with different clock setup. Regards, Eugene Surovegin <mailto:ebs@innocent.com> ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-03 19:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-20 0:36 Linux Image Aman
2002-10-17 16:40 ` Wolfgang Denk
2002-11-03 11:27 ` Base Baud Calculation Aman
[not found] ` <000c01c28330$29c684a0$370da8c0@aman>
2002-11-03 19:29 ` Eugene Surovegin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).