forked from len0rd/rockbox
Agptek Rocker: Add tools to work with OF update images
Original firmware update is provided as .upt file. This file is actually ISO9660 image containing uBoot, kernel image and UBIFS rootfs and additional control files. Installing bootloader means patching UBIFS rootfs image. Change-Id: Ica86d1189dc1d5f3131d2035d8b87c8d08ec36b5
This commit is contained in:
parent
d55680993d
commit
09fde79ec8
5 changed files with 316 additions and 0 deletions
50
tools/agptek_rocker/Dockerfile
Normal file
50
tools/agptek_rocker/Dockerfile
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
FROM debian:9
|
||||
|
||||
WORKDIR /home/rb
|
||||
ENV HOME /home/rb
|
||||
|
||||
# Install tools needed
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||
build-essential \
|
||||
git \
|
||||
perl \
|
||||
curl \
|
||||
texinfo \
|
||||
flex \
|
||||
bison \
|
||||
bzip2 \
|
||||
gzip \
|
||||
zip \
|
||||
patch \
|
||||
automake \
|
||||
libtool \
|
||||
libtool-bin \
|
||||
autoconf \
|
||||
libmpc-dev \
|
||||
gawk \
|
||||
python \
|
||||
python-lzo \
|
||||
python-setuptools \
|
||||
mtd-utils \
|
||||
xorriso && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Clone rockbox repository
|
||||
RUN cd /home/rb && \
|
||||
git clone https://github.com/wodz/rockbox-wodz.git
|
||||
|
||||
# Build cross toolchain (It takes quite long)
|
||||
RUN cd /home/rb/rockbox-wodz && \
|
||||
git checkout agptek-rocker && \
|
||||
./tools/rockboxdev.sh --target=y
|
||||
|
||||
# Install tools for unpacking ubifs
|
||||
RUN cd /home/rb && \
|
||||
git clone https://github.com/jrspruitt/ubi_reader.git && \
|
||||
cd /home/rb/ubi_reader && \
|
||||
python setup.py install
|
||||
|
||||
# Copy build script
|
||||
RUN cp /home/rb/rockbox-wodz/tools/agptek_rocker/bootloader_install.sh /usr/local/bin && \
|
||||
chmod 755 /usr/local/bin/bootloader_install.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue