[ECOS] RedBoot

Gary Thomas gthomas@redhat.com
Mon Jan 1 08:10:00 GMT 2001


 
On 29-Dec-2000 Anthony Massa wrote:
> The error I get is:
> 
> Can't load 'mbx.img': operation timed out.

Are you sure that you are running a TFTP server (and not FTP)?

> 
> 
>>
>> On 28-Dec-2000 Anthony Massa wrote:
>> > The patch seems to work.  I can run my bootp server on my NT
>> workstation and
>> > with the MBX board in non-debug mode, an IP address gets assigned.
>> >
>> > I am not able to download a file, though.  I have my file in my d:\temp
>> > directory.  I startup the TFTP server program I have and try to run the
>> > following command under redboot:
>> >
>> > load -v -m TFTP d:\temp\mbx.img
>> >
>> >
>> > However, I always get an error that redboot cannot load the
>> image.  What am
>> > I doing wrong?
>> >
>>
>> What error do you get?  Some TFTP servers insist that the downloaded file
>> exist in a special directory and that the name provided [by you]
>> be relative
>> to that directory.  This is for security purposes since TFTP has
>> no authentication.
>>
>> > What port does redboot use for tftp (21)?
>>
>> The default port - UDP port #69.
>>
>> >
>> >
>> > Thanks a bunch for all the help.
>> >
>> >
>> >
>> >>
>> >> There seems to be some problems with timing in RedBoot.  Try using this
>> >> patch and see if it helps.  Note: this _may_ help with both BOOTP and
>> >> the TFTP load problems you are having.
>> >>
>> >> Index: hal/powerpc/arch/current/src/hal_intr.c
>> >> ===================================================================
>> >> RCS file: /home/cvs/ecc/ecc/hal/powerpc/arch/current/src/hal_intr.c,v
>> >> retrieving revision 1.13
>> >> diff -u -5 -p -r1.13 hal_intr.c
>> >> --- hal/powerpc/arch/current/src/hal_intr.c     2000/10/20
>> >> 23:58:56     1.13
>> >> +++ hal/powerpc/arch/current/src/hal_intr.c     2000/12/28 14:24:43
>> >> @@ -63,12 +63,13 @@ hal_delay_us(int us)
>> >>  {
>> >>      cyg_uint32 old_dec, new_dec;
>> >>      long ticks;
>> >>      // Note: the system constant CYGNUM_HAL_RTC_PERIOD
>> >> corresponds to 10,000us
>> >>      // Scale the desired number of microseconds to be a number
>> >> of decrementer ticks
>> >> +    // Note: this test says "if there is more than one
>> >> decrementer tick / us"
>> >>      if (CYGNUM_HAL_RTC_PERIOD > 10000) {
>> >> -        ticks = us * (CYGNUM_HAL_RTC_PERIOD * 100) / 1000000;
>> >> +        ticks = ((long long)us * (CYGNUM_HAL_RTC_PERIOD * 100))
>> >> / 1000000;
>> >>      } else {
>> >>          ticks = us / (CYGNUM_HAL_RTC_PERIOD * 100) / 1000000;
>> >>      }
>> >>      asm volatile("mfdec  %0;" : "=r"(old_dec) : );
>> >>      while (ticks-- > 0) {
>> >>
>> >> On 28-Dec-2000 Anthony Massa wrote:
>> >> > I am running a BOOTP server on my NT machine and now I am
>> able to also
>> >> > connect with the telnet program.  One problem is that the board
>> >> can only get
>> >> > an IP address (via BOOTP) if the debug output is enabled.
>> If not, BOOTP
>> >> > does not work.  Do you know where this problem may be?
>> >> >
>> >> >
>> >> >> On 28-Dec-2000 Anthony Massa wrote:
>> >> >> > The GDB connection port is currently 0.  Is this what I should
>> >> >> leave it as,
>> >> >> > or should I change it?
>> >> >> >
>> >> >> > Can I change it to whatever I want?
>> >> >> >
>> >> >>
>> >> >> Yes.  I'd suggest something non-priveledged, like 9000.
>> >> >>
>> >> >> > I don't know how to change the port for the Win NT telnet
>> >> >> program, do you?
>> >> >> >
>> >> >>
>> >> >> No, but surely there is a way.  You could always set RedBoot to
>> >> >> use port 23
>> >> >> which is the default telnet port.
>> >> >>
>> >> >> >
>> >> >> > This first dump is with static IP addresses.  The second is
>> >> with BOOTP
>> >> >> > enabled.
>> >> >>
>> >> >> It looks like the ESA got set correctly.  There may be some
>> >> other problem
>> >> >> with the BOOTP setup.  Probably a Win/NT question, sorry I can't
>> >> >> help much.
>> >> >>
>> >> >> >
>> >> >> >
>> >> >> > RedBoot(tm) debug environment - built 16:30:52, Dec 27 2000
>> >> >> > Platform: Motorola MBX (PowerPC 860)
>> >> >> > Copyright (C) 2000, Red Hat, Inc.
>> >> >> >
>> >> >> > RAM: 0x00000000-0x00400000
>> >> >> > FLASH: 0xfe000000 - 0xfe080000, 8 blocks of 0x00010000 bytes each.
>> >> >> > IP: 192.168.0.5, Default server: 192.168.0.3
>> >> >> > RedBoot> Ethernet recv:
>> >> >> > 0x0000A83C: FFFF FFFF FFFF 0060  975B 43B8 0800
>> >> >> |.......`.[C...  |
>> >> >> > 0x0000A84A: 4500 004E AC04 0000  8011 0C48 C0A8 0003
>> >> >> |E..N.......H....|
>> >> >> > 0x0000A85A: C0A8 00FF 0089 0089  003A 9B63 823E 0110
>> >> >> |.........:.c.>..|
>> >> >> > 0x0000A86A: 0001 0000 0000 0000  2045 4846 4345 5046
>> >> >> |........ EHFCEPF|
>> >> >> > 0x0000A87A: 4646 4144 4243 4143  4143 4143 4143 4143
>> >> >> |FFADBCACACACACAC|
>> >> >> > 0x0000A88A: 4143 4143 4143 4142  4C00 0020 0001 3F4B
>> >> >> |ACACACABL.. ..?K|
>> >> >> > 0x0000A89A: 91B6                                       |..
>> >> >>         |
>> >> >> > Ethernet recv:
>> >> >> > 0x0000AE4C: FFFF FFFF FFFF 0060  975B 43B8 0800
>> >> >> |.......`.[C...  |
>> >> >> > 0x0000AE5A: 4500 004E AD04 0000  8011 0B48 C0A8 0003
>> >> >> |E..N.......H....|
>> >> >> > 0x0000AE6A: C0A8 00FF 0089 0089  003A 9B63 823E 0110
>> >> >> |.........:.c.>..|
>> >> >> > 0x0000AE7A: 0001 0000 0000 0000  2045 4846 4345 5046
>> >> >> |........ EHFCEPF|
>> >> >> > 0x0000AE8A: 4646 4144 4243 4143  4143 4143 4143 4143
>> >> >> |FFADBCACACACACAC|
>> >> >> > 0x0000AE9A: 4143 4143 4143 4142  4C00 0020 0001 CB64
>> >> >> |ACACACABL.. ...d|
>> >> >> > 0x0000AEAA: 1FB1                                       |..
>> >> >>         |
>> >> >> > Ethernet recv:
>> >> >> > 0x0000B45C: FFFF FFFF FFFF 0060  975B 43B8 0800
>> >> >> |.......`.[C...  |
>> >> >> > 0x0000B46A: 4500 004E AE04 0000  8011 0A48 C0A8 0003
>> >> >> |E..N.......H....|
>> >> >> > 0x0000B47A: C0A8 00FF 0089 0089  003A 9B63 823E 0110
>> >> >> |.........:.c.>..|
>> >> >> > 0x0000B48A: 0001 0000 0000 0000  2045 4846 4345 5046
>> >> >> |........ EHFCEPF|
>> >> >> > 0x0000B49A: 4646 4144 4243 4143  4143 4143 4143 4143
>> >> >> |FFADBCACACACACAC|
>> >> >> > 0x0000B4AA: 4143 4143 4143 4142  4C00 0020 0001 45D9
>> >> >> |ACACACABL.. ..E.|
>> >> >> > 0x0000B4BA: 8326                                       |.&
>> >> >>         |
>> >> >> > Ethernet recv:
>> >> >> > 0x0000BA6C: FFFF FFFF FFFF 0060  975B 43B8 0800
>> >> >> |.......`.[C...  |
>> >> >> > 0x0000BA7A: 4500 004E AF04 0000  8011 0948 C0A8 0003
>> >> >> |E..N.......H....|
>> >> >> > 0x0000BA8A: C0A8 00FF 0089 0089  003A 9B5F 8242 0110
>> >> >> |.........:._.B..|
>> >> >> > 0x0000BA9A: 0001 0000 0000 0000  2045 4846 4345 5046
>> >> >> |........ EHFCEPF|
>> >> >> > 0x0000BAAA: 4646 4144 4243 4143  4143 4143 4143 4143
>> >> >> |FFADBCACACACACAC|
>> >> >> > 0x0000BABA: 4143 4143 4143 4142  4C00 0020 0001 0611
>> >> >> |ACACACABL.. ....|
>> >> >> > 0x0000BACA: 04A5                                       |..
>> >> >>         |
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > ==============================================
>> >> >> > START OF SECOND DUMP
>> >> >> > ==============================================
>> >> >> >
>> >> >> > RedBoot(tm) debug environment - built 16:30:52, Dec 27 2000
>> >> >> > Platform: Motorola MBX (PowerPC 860)
>> >> >> > Copyright (C) 2000, Red Hat, Inc.
>> >> >> >
>> >> >> > RAM: 0x00000000-0x00400000
>> >> >> > FLASH: 0xfe000000 - 0xfe080000, 8 blocks of 0x00010000 bytes each.
>> >> >> > Ethernet send:
>> >> >> > 0x00004A64: FFFF FFFF FFFF 0800  3E27 5ADC 0800
>> >> >> |........>'Z...  |
>> >> >> > 0x00011B44: 4500 0148 0000 0000  4011 79A6 0000 0000
>> >> >> |E..H....@.y.....|
>> >> >> > 0x00011B54: FFFF FFFF 0044 0043  0134 ED71 0101 0600
>> >> >> |.....D.C.4.q....|
>> >> >> > 0x00011B64: 1234 5555 0000 0000  0000 0000 0000 0000
>> >> >> |.4UU............|
>> >> >> > 0x00011B74: 0000 0000 0000 0000  0800 3E27 5ADC 0000
>> >> >> |..........>'Z...|
>> >> >> > 0x00011B84: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011B94: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BA4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BB4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BC4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BD4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BE4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BF4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C04: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C14: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C24: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C34: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C44: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C54: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C64: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C74: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C84: 0000 0000 0000 0000
>> >> >> |........        |
>> >> >> > Ethernet send:
>> >> >> > 0x00004A64: FFFF FFFF FFFF 0800  3E27 5ADC 0800
>> >> >> |........>'Z...  |
>> >> >> > 0x00011B44: 4500 0148 0001 0000  4011 79A5 0000 0000
>> >> >> |E..H....@.y.....|
>> >> >> > 0x00011B54: FFFF FFFF 0044 0043  0134 ED71 0101 0600
>> >> >> |.....D.C.4.q....|
>> >> >> > 0x00011B64: 1234 5555 0000 0000  0000 0000 0000 0000
>> >> >> |.4UU............|
>> >> >> > 0x00011B74: 0000 0000 0000 0000  0800 3E27 5ADC 0000
>> >> >> |..........>'Z...|
>> >> >> > 0x00011B84: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011B94: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BA4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BB4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BC4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BD4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BE4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BF4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C04: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C14: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C24: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C34: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C44: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C54: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C64: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C74: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C84: 0000 0000 0000 0000
>> >> >> |........        |
>> >> >> > Ethernet send:
>> >> >> > 0x00004A64: FFFF FFFF FFFF 0800  3E27 5ADC 0800
>> >> >> |........>'Z...  |
>> >> >> > 0x00011B44: 4500 0148 0002 0000  4011 79A4 0000 0000
>> >> >> |E..H....@.y.....|
>> >> >> > 0x00011B54: FFFF FFFF 0044 0043  0134 ED71 0101 0600
>> >> >> |.....D.C.4.q....|
>> >> >> > 0x00011B64: 1234 5555 0000 0000  0000 0000 0000 0000
>> >> >> |.4UU............|
>> >> >> > 0x00011B74: 0000 0000 0000 0000  0800 3E27 5ADC 0000
>> >> >> |..........>'Z...|
>> >> >> > 0x00011B84: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011B94: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BA4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BB4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BC4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BD4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BE4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011BF4: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C04: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C14: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C24: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C34: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C44: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C54: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C64: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C74: 0000 0000 0000 0000  0000 0000 0000 0000
>> >> >> |................|
>> >> >> > 0x00011C84: 0000 0000 0000 0000
>> >> >> |........        |
>> >> >> > Can't get BOOTP info - network disabled!
>> >> >> > RedBoot>
>> >> >> >
>> >> >> >
>> >> >> >>
>> >> >> >> On 28-Dec-2000 Anthony Massa wrote:
>> >> >> >> > I was able to change the MAC address (using fconfig).  I am
>> >> >> >> able to do ping
>> >> >> >> > from Win NT host and get back packets.  I cannot run using
>> >> >> >> BOOTP, I must use
>> >> >> >> > a static IP address.
>> >> >> >> >
>> >> >> >>
>> >> >> >> Can you send me the output from turning on the network debug
>> >> >> (via fconfig)
>> >> >> >> just to make sure that the address is getting set correctly?
>> >> >> >>
>> >> >> >> > However, I still am not able to run the telnet application and
>> >> >> >> connect to
>> >> >> >> > the MBX board.  Do you know what is the problem there?
>> >> >> >> >
>> >> >> >>
>> >> >> >> What port did you set?  You must connect to the "GDB
>> >> >> connection port", not
>> >> >> >> the default port 23 (telnet port).  Still use telnet, just
>> >> >> force the port
>> >> >> >> that RedBoot is using.
>> >> >> >>
>> >> >> >> > Do I need to run a BOOTP server from my host?
>> >> >> >> >
>> >> >> >> > Should I try a tftp server application?
>> >> >> >>
>> >> >> >> These are both up to you, based on your needs.
>> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >>
>> >> >> >> >> As I expected, the problem is that RedBoot/eCos can't get
>> >> >> at the NVRAM
>> >> >> >> >> information.  This is because the NVRAM is connected via the
>> >> >> >> I2C interface
>> >> >> >> >> and that is broken on the MBX!  I've not been able to
>> >> >> figure out how to
>> >> >> >> >> make it work reliably.
>> >> >> >> >>
>> >> >> >> >> However, the attached patch should let you get by.
>> It adds some
>> >> >> >> >> additional
>> >> >> >> >> information kept by RedBoot.  Basically, run 'fconfig' and
>> >> >> >> enter the ESA
>> >> >> >> >> (MAC) address manually.  Then RedBoot and eCos
>> programs will be
>> >> >> >> >> able to set
>> >> >> >> >> up the interface properly.
>> >> >> >> >>
>> >> >> >> >> Let me know if this works/helps/...  If so, I'll apply it
>> >> >> permanently.
>> >> >> >> >>
>> >> >> >>
>> >> >>
>> >>
>>


More information about the Ecos-discuss mailing list