Fix the geom mappings for WR1043ND.

The uboot mapping is only 128KiB (0x20000) and not 2MiB (0x200000).

Dynamically adjust kernel and rootfs mappings based on the
geom_uncompress(4) magic.

This makes the built images more reliable by accepting changes on kernel
size transparently and matches the images built with zrouter and
freebsd-wifi-build.

Tested by:	gjb
Approved by:	adrian (mentor)
Obtained from:	Zrouter
This commit is contained in:
Luiz Otavio O Souza 2014-01-07 13:09:35 +00:00
parent 45e18ea7ea
commit c7b81b2fe5

View File

@ -45,18 +45,18 @@ hint.ath.0.eepromaddr=0x1fff1000
hint.map.0.at="flash/spi0"
hint.map.0.start=0x00000000
hint.map.0.end=0x000200000
hint.map.0.end=0x00020000
hint.map.0.name="uboot"
hint.map.0.readonly=1
hint.map.1.at="flash/spi0"
hint.map.1.start=0x00020000
hint.map.1.end=0x00220000
hint.map.1.end="search:0x00100000:0x10000:.!/bin/sh"
hint.map.1.name="kernel"
hint.map.1.readonly=1
hint.map.2.at="flash/spi0"
hint.map.2.start=0x00220000
hint.map.2.start="search:0x00100000:0x10000:.!/bin/sh"
hint.map.2.end=0x007e0000
hint.map.2.name="rootfs"
hint.map.2.readonly=1