Welcome, Guest

Author Topic: Issue loading self-built openWRT with uboot tftpboot  (Read 6858 times)

mike_s

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Issue loading self-built openWRT with uboot tftpboot
« on: July 01, 2015, 10:50:09 PM »
I cloned the openWRT github for the rt5350f target and built it for the olinuxino.  Firstly, it attempts to download openssl-1.0.2a whcih doesnt exist on the server.  I had to open the makefile and change the target version/md5 to version openssl-1.0.2c.

Once I made that change, and massaged the patches, it built.  However, when I attempt to load the firmware through uboot using the tftpboot command it reports an error. 

I am following the directions located: https://www.olimex.com/wiki/RT5350F-OLinuXino#Building_uboot

Thanks


EDIT:  The error i get when starting the load is:

## Booting image at 00000000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.11
   Created:      2015-07-03  19:58:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1098737 Bytes =  1 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover
« Last Edit: July 04, 2015, 02:26:18 AM by mike_s »

Daniel

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
Re: Issue loading self-built openWRT with uboot tftpboot
« Reply #1 on: July 02, 2015, 02:18:10 AM »
Looking at the OLINUXINO-RT5350F.dts (located at openwrt/target/linux/ramips/dts/), why the "firmware" partition is defined of size 0x3b0000? Shouldn't it be 0x7b0000? The flash size of the OLINUXINO-RT5350F is 8MB...

Samuele, you are right. The firmware partition should be 0x7b0000 and not 0x3b0000. That's the reason why there is not enough space left. I will try to change that.

Did you modify the size of the firmware partition?

Daniel

  • Newbie
  • *
  • Posts: 10
  • Karma: +1/-0
Re: Issue loading self-built openWRT with uboot tftpboot
« Reply #2 on: July 02, 2015, 03:14:42 AM »
This would have solved your first problem:

README:
Quote
Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

https://github.com/OLIMEX/openwrt/blob/rt5350f/README

brmlst

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Issue loading self-built openWRT with uboot tftpboot
« Reply #3 on: July 02, 2015, 01:16:29 PM »
I also had the problem with a pair of files even after updating, eventually I ended up manually loading the missing sources and putting it in the dl/ directory: quick and dirty, but I was in the urge of getting a running system.

mike_s

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Issue loading self-built openWRT with uboot tftpboot
« Reply #4 on: July 03, 2015, 08:06:57 PM »
This would have solved your first problem:

README:
Quote
Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

https://github.com/OLIMEX/openwrt/blob/rt5350f/README

Doesnt fix openssl unfortunately.  Its still trying to pull 1.0.2a instead of 1.0.2c

mike_s

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Issue loading self-built openWRT with uboot tftpboot
« Reply #5 on: July 04, 2015, 02:25:33 AM »
The error I am getting is

## Booting image at 00000000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.11
   Created:      2015-07-03  19:58:47 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1098737 Bytes =  1 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover



brmlst

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Re: Issue loading self-built openWRT with uboot tftpboot
« Reply #6 on: July 04, 2015, 03:02:05 PM »
This would have solved your first problem:

README:
Quote
Run "./scripts/feeds update -a" to get all the latest package definitions
defined in feeds.conf / feeds.conf.default respectively
and "./scripts/feeds install -a" to install symlinks of all of them into
package/feeds/.

https://github.com/OLIMEX/openwrt/blob/rt5350f/README

Doesnt fix openssl unfortunately.  Its still trying to pull 1.0.2a instead of 1.0.2c

The build tree includes some patches to version 1.0.2a even if you could download version 1.0.2c then you need to also change the makefile.

Anyway you can easily google for 1.0.2a version, manually download and put it into the ds/ directory, and forget about this issue.

Hopefully the git maintainer sooner or later will update the tree resolving this issue and the flash image size one.