Re: Boting error in freescale board

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



chiachen wrote:
> Oh, I just know a littel about it ,not in details. If you want to know 
> how, you'd better read the source code of the kernel, like setup.asm 
> main.c directly. In a fast way, you could seach some articles about how 
> kernel start.
> Sorry, I can't give you help detaily.
> 
> ------------------------------------------------------------------------
> *发件人:*"Daniel (Youngwhan) Song " <mailto:breadncup@xxxxxxxxx>
> *发送日期:*2009-12-16 10:23
> *收件人:*chiachen <mailto:luojiazhen@xxxxxxxxx>
> *抄送:*kernelnewbies@xxxxxxxxxxxx <mailto:kernelnewbies@xxxxxxxxxxxx>
> *主题:* Re: Boting error in freescale board
> Thanks, Chiachen,
> 
> But, what I want to know is how the kernel knows the parameters at the 
> beginning before mounting the root file system?
> 
> Best Regards,
> Daniel (Youngwhan) Song
> 
> 
> 
> 2009/12/15 chiachen <luojiazhen@xxxxxxxxx <mailto:luojiazhen@xxxxxxxxx>>
> 
>     The parameter in the command line is transferred to the kernel
>     firstly, when the file system is mounted, they are transferred to
>     /proc/cmdline. Other shell script need the parameter will
>     analysis it later.
> 
>     ------------------------------------------------------------------------
>     *发件人:*Daniel (Youngwhan) Song <mailto:breadncup@xxxxxxxxx>
>     *发送日期:*2009-12-16 09:40
>     *收件人:*abhijeet tripathi <mailto:abhijeet.tripathy@xxxxxxxxxxx>
>     *抄送:*kernelnewbies@xxxxxxxxxxxx
>     <mailto:kernelnewbies@xxxxxxxxxxxx> Niamathullah sharief
>     <mailto:newbiesha@xxxxxxxxx>
>     *主题:* Re: Boting error in freescale board
> 
>     Just a quick question.
> 
>     How is "console" booting parameter transferred to linux? Could
>     somebody point me out good docs for it, please?
> 
>     Thanks,
> 
>     Best Regards,
>     Daniel (Youngwhan) Song
> 
> 
> 
>     On Tue, Dec 15, 2009 at 6:15 AM, abhijeet tripathi
>     <abhijeet.tripathy@xxxxxxxxxxx
>     <mailto:abhijeet..tripathy@xxxxxxxxxxx>> wrote:
> 
> 
>         --- On Tue, 15/12/09, Niamathullah sharief <newbiesha@xxxxxxxxx
>         <mailto:newbiesha@xxxxxxxxx>> wrote:
> 
>          > From: Niamathullah sharief <newbiesha@xxxxxxxxx
>         <mailto:newbiesha@xxxxxxxxx>>
>          > Subject: Boting error in freescale board
>          > To: kernelnewbies@xxxxxxxxxxxx
>         <mailto:kernelnewbies@xxxxxxxxxxxx>
>          > Date: Tuesday, 15 December, 2009, 3:22 PM
>          > Hello,
>          > ?? am used pegetron freescale processor
> 
>          > board. it that when i enter into minicom its not getting the
>          > correct booting....see this what i am getting .
>          >
>          > ariem@ariem-desktop:~$ minicom -s
>          >
>          >
>          >
>          > Welcome to minicom 2.3
>          >
>          > OPTIONS: I18n
>          > Compiled on Oct 24 2008, 06:37:44.
>          > Port /dev/ttyUSB0
>          >
>          > ?????????ress CTRL-A Z for help on special keys
> 
>          >
>          >
>          >
>          >
>          > ++Initializing SPI-NOR flash...
>          >
>          > JEDEC ID: 0xbf:0x25:0x4a
>          >
>          > SPI NOR: block_size=0x10000, blocks=0x40, start=0x00000000,
>          > end=0x00400000
>          >
>          > ... Read from 0x1fef0000-0x1ff00000 at 0x00080000: .
>          > ... Read from 0x1fee3000-0x1fee4000 at 0x0008f000: .
>          > PMIC ID: 0x000041d0 [Rev: 2.0]
>          > [Warning] FEC not connect right PHY: ID=0
>          > FEC: [ HALF_DUPLEX ] [ disconnected ] [ 10M bps ]:
>          >
>          > Ethernet mxc_fec: MAC address 00:00:45:67:89:ab
>          > No IP info for device!
>          >
>          > Reset reason: Power-on reset
>          > fis/fconfig from SPI-NOR
>          > Boot switch: INTERNAL
>          >
>          > ????EXPANSION: SPI-NOR: eCSPI1
>          >
>          > RedBoot(tm) bootstrap and debug environment [ROMRAM]
>          > Non-certified release, version FSL 200910_P1 - built
>          > 16:07:20, Jul 15 2009
>          >
>          > Platform: MX51 Babbage (Freescale i.MX51 based) PASS 2.0
>          > [x32 DDR]
>          >
>          > Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
>          > Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
>          >
>          > RAM: 0x00000000-0x1ff00000, [0x00094fb8-0x1fee1000]
>          > available
>          > FLASH: 0x00000000 - 0x400000, 64 blocks of 0x00010000 bytes
>          > each.
>          >
>          > == Executing boot script in 1.000 seconds - enter ^C to
>          > abort
>          > RedBoot> pmic 15 0x00400022
>          > ????val: 0x00400022
>          >
>          > RedBoot> mfill -b 0x73f88000 -p 0x01025200 -l 0x04 -4
>          > RedBoot> mfill -b 0x73f84000 -p 0x20 -l 0x04 -4
>          >
>          > RedBoot> fis load kernel
>          > ... Read from 0x1fef0000-0x1feff000 at 0x00080000: .
>          > ... Read from 0x00100000-0x00380000 at 0x00100000: .
>          > RedBoot> e -c "root=/dev/sda1 ro quite
>          > splash"
>          > entry=0x90008000, target=0x90008000
>          >
>          > Using base address 0x00100000 and length 0x00280000
>          > Uncompressing
>          >
>         Linux..................................................................................................................................
> 
>         IIRC, you need to pass "console=<UART>,<BAUD-RATE>" ?n your
>         kernel command line.
>         e.g.: console=ttyS0,115200n8
> 
>          > done, bo.
>          >
>          >
>          > after this i am not getting anything.what to
>          > do?
>          >
> 
>         Best regards,
>         Abhijeet
> 
> 
>         ???he INTERNET now has a personality. YOURS! See your Yahoo!
>         Homepage. http://in.yahoo.com/
> 
> 
>         --
>         To unsubscribe from this list: send an email with
>         "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
>         <mailto:ecartis@xxxxxxxxxxxxx>
>         Please read the FAQ at http://kernelnewbies.org/FAQ
> 
> 
> 
> 
> 
Hi,

To know this you have to read the code of boot loader in your case it is
redboot. normally the bootloader will put all this information in the
RAM somewhere and pass the address and size to the kernel.

Not sure about the redboot, but in u-boot not only the kernel cmdline
parameters are passed it passes a big structure with lots of low level
data's to the kernel

-- 
Regards,
Mohamed Thalib H

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux