<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/pepe2k/include/image-commands.mk, branch v21.02.7</title>
<subtitle>Staging tree of Piotr Dymacz</subtitle>
<id>https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.7</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/pepe2k/atom?h=v21.02.7'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/'/>
<updated>2021-05-30T20:32:50Z</updated>
<entry>
<title>build: kernel2minor: work around path length limit</title>
<updated>2021-05-30T20:32:50Z</updated>
<author>
<name>François Chavant</name>
</author>
<published>2021-05-07T15:58:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=1a41b88803366fdd8eaf773c4a10e41a0e8947db'/>
<id>urn:sha1:1a41b88803366fdd8eaf773c4a10e41a0e8947db</id>
<content type='text'>
When building for MikroTik devices the kernel2minor tool will sometimes
fail with:

  Can't get lstat from kernel file!: No such file or directory.

This is because kernel2minor expects paths no longer than 250 chars.
To work around this the include/image-commands.mk has been modified
to copy the kernel to a temporary file (/tmp/tmp.XXXXXXXXXX) before
calling kernel2minor.

Signed-off-by: François Chavant &lt;francois@chavant.info&gt;
(cherry picked from commit 5a9608102b3c444d0c963255f9d016a1d5469d5d)
</content>
</entry>
<entry>
<title>image: add ModelNameLimit16</title>
<updated>2021-02-23T07:35:41Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2021-02-22T17:04:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=eb8726f9f43f9852d3ff8357278187ffa1eadf25'/>
<id>urn:sha1:eb8726f9f43f9852d3ff8357278187ffa1eadf25</id>
<content type='text'>
This script returns the model name limited to 16 characters.

Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
(cherry-picked from 1235ea7c20)
</content>
</entry>
<entry>
<title>build: move elx-header into image-commands.mk</title>
<updated>2021-02-05T20:57:19Z</updated>
<author>
<name>Yanase Yuki</name>
</author>
<published>2020-11-05T10:59:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=d468ff97b71994d5f30751fdd22c530c85a52f42'/>
<id>urn:sha1:d468ff97b71994d5f30751fdd22c530c85a52f42</id>
<content type='text'>
ELECOM WAB-I1750-PS will need this in ath79, so move it to common
Makefile.

Signed-off-by: Yanase Yuki &lt;dev@zpc.sakura.ne.jp&gt;
</content>
</entry>
<entry>
<title>ramips: add support for ELECOM WRC-2533GHBK-I</title>
<updated>2021-01-29T14:32:07Z</updated>
<author>
<name>INAGAKI Hiroshi</name>
</author>
<published>2020-12-11T14:14:58Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=eb11cd9ea3822b34df6260b1dd40fc4f0866b804'/>
<id>urn:sha1:eb11cd9ea3822b34df6260b1dd40fc4f0866b804</id>
<content type='text'>
ELECOM WRC-2533GHBK-I is a 2.4/5 GHz band 11ac (Wi-Fi 5) router, based
on MT7621A.

Specification:

- SoC		: MediaTek MT7621A
- RAM		: DDR3 128 MiB
- Flash		: SPI-NOR 16 MiB
- WLAN		: 2.4/5 GHz 4T4R (2x MediaTek MT7615)
- Ethernet	: 10/100/1000 Mbps x5
  - Switch	: MediaTek MT7530 (SoC)
- LED/keys	: 4x/3x (2x buttons, 1x slide-switch)
- UART		: through-hole on PCB
  - J4: 3.3V, RX, GND, TX from SoC side
  - 57600n8
- Power		: 12VDC, 1.5A

Flash instruction using factory image:

1. Boot WRC-2533GHBK-I normally
2. Access to "http://192.168.2.1/" and open firmware update page
   ("ファームウェア更新")
3. Select the OpenWrt factory image and click apply ("適用") button
4. Wait ~150 seconds to complete flashing

MAC addresses:

LAN	: BC:5C:4C:xx:xx:89 (Config, ethaddr (text))
WAN	: BC:5C:4C:xx:xx:88 (Config, wanaddr (text))
2.4GHz	: BC:5C:4C:xx:xx:8A (Factory, 0x4    (hex))
5GHz	: BC:5C:4C:xx:xx:8B (Factory, 0x8004 (hex))

Signed-off-by: INAGAKI Hiroshi &lt;musashino.open@gmail.com&gt;
Reviewed-by: Sungbo Eo &lt;mans0n@gorani.run&gt;
</content>
</entry>
<entry>
<title>build: add elecom-product-header for ELECOM devices</title>
<updated>2021-01-29T14:28:12Z</updated>
<author>
<name>INAGAKI Hiroshi</name>
</author>
<published>2020-12-11T14:14:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=0071c7cd8246197ae27d8a0c4b5bdf7976dbe362'/>
<id>urn:sha1:0071c7cd8246197ae27d8a0c4b5bdf7976dbe362</id>
<content type='text'>
A header used in ELECOM WRC-300GHBK2-I and WRC-1750GHBK2-I/C is also
used in ELECOM WRC-2533GHBK-I, so split the code to generate the header
and move it to image-commands.mk to use from ramips target.

Signed-off-by: INAGAKI Hiroshi &lt;musashino.open@gmail.com&gt;
Reviewed-by: Sungbo Eo &lt;mans0n@gorani.run&gt;
</content>
</entry>
<entry>
<title>build/image: warn if missing qemu-img for VDI/VMDK</title>
<updated>2021-01-10T22:28:14Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2020-12-30T19:08:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ca289e322d87bd14271de84b25291c2979f96781'/>
<id>urn:sha1:ca289e322d87bd14271de84b25291c2979f96781</id>
<content type='text'>
Currently `qemu-img` is used to convert raw x86 images to VDI and VMDK
images, used for virtual machines.

Having `qemu-img` in tree requires us to maintain an ancient version of
`qemu-utils`, which recently required extra work to compile with newer
compiler version.

This commit prints a warning message in case `qemu-img` is missing.

As a next step the in-tree version of `qemu-img` can be removed.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: add UIMAGE_MAGIC to device variables</title>
<updated>2020-11-25T14:55:26Z</updated>
<author>
<name>Sander Vanheule</name>
</author>
<published>2020-11-04T09:21:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=c20b8d690bec265693b3eb250e1ba1e8ed3abae4'/>
<id>urn:sha1:c20b8d690bec265693b3eb250e1ba1e8ed3abae4</id>
<content type='text'>
Allow a device recipe to specify a custom UIMAGE_MAGIC value, as used by
OpenWrt's -M flag for mkimage. This allows to automatically customize
the magic bytes in all calls to Build/uImage for this device, similar to
the behaviour of UIMAGE_NAME. Since the -M argument is inserted before
the user arguments, it can be overriden.

The following example would use 0x87654321 for the KERNEL image, but
0x12345678 for the KERNEL_INITRAMFS image:

  define Device/MyDevice
    UIMAGE_MAGIC := 0x87654321
    KERNEL := ... | uImage lzma
    KERNEL_INITRAMFS := ... | uImage lzma -M 0x12345678
    ...
  endef

Fixes: df8e6be59a1f ("rtl838x: add new architecture")
[UIMAGE_MAGIC was not declared as a device variable]

Signed-off-by: Sander Vanheule &lt;sander@svanheule.net&gt;
[rebase, improve formatting of "Fixes"]
Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>build: uImage: separate arguments into individual lines</title>
<updated>2020-11-25T14:51:18Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-11-25T14:48:40Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=8416d0626f57ff3303a44a7b9e29f97c3e380e63'/>
<id>urn:sha1:8416d0626f57ff3303a44a7b9e29f97c3e380e63</id>
<content type='text'>
Having one line per argument increases overview dramatically.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
<entry>
<title>build: uImage: allow override of default arguments</title>
<updated>2020-11-25T14:46:34Z</updated>
<author>
<name>Sander Vanheule</name>
</author>
<published>2020-11-04T09:21:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=ff012f3a67eba3622265b2aaf38da6a0a4574021'/>
<id>urn:sha1:ff012f3a67eba3622265b2aaf38da6a0a4574021</id>
<content type='text'>
For some build recipes, the argument to Build/uImage is used to sneak in
extra arguments for mkimage, whereas this appears to have been intended
to specificy the compression method only.

Use the first provided word for -C to be backwards compatible with
current calls to Build/uImage. Use the rest of the call arguments to
override the provided defaults. Only the input file name (-d) and the
output file name cannot overriden.

Signed-off-by: Sander Vanheule &lt;sander@svanheule.net&gt;
</content>
</entry>
<entry>
<title>image: sort image-commands.mk alphabetically</title>
<updated>2020-10-30T18:23:00Z</updated>
<author>
<name>Adrian Schmutzler</name>
</author>
<published>2020-10-30T18:21:37Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/pepe2k/commit/?id=8af6dfc01c01b2d6b476cd3e87de1604f8e48564'/>
<id>urn:sha1:8af6dfc01c01b2d6b476cd3e87de1604f8e48564</id>
<content type='text'>
The definitions in image-commands.mk seem to have no particular
order. Sort them alphabetically to make it easier to actually
find anything there. No other changes made beyond moving entire
blocks.

Signed-off-by: Adrian Schmutzler &lt;freifunk@adrianschmutzler.de&gt;
</content>
</entry>
</feed>
