Issue loading self-built openWRT with uboot tftpboot

Started by mike_s, July 01, 2015, 10:50:09 PM

Previous topic - Next topic

mike_s

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

Daniel

Quote from: Daniel on July 01, 2015, 07:52:44 PM
Quote from: samuele on June 30, 2015, 05:37:12 PM
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

This would have solved your first problem:

README:
QuoteRun "./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

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

Quote from: Daniel on July 02, 2015, 03:14:42 AM
This would have solved your first problem:

README:
QuoteRun "./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

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

Quote from: mike_s on July 03, 2015, 08:06:57 PM
Quote from: Daniel on July 02, 2015, 03:14:42 AM
This would have solved your first problem:

README:
QuoteRun "./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.