Browse Source

Update koreader; emulate ntpd with ntpdate

feature/booting-external-microsd
Cosmin Gorgovan 3 years ago
parent
commit
a9bf918e1e
5 changed files with 9 additions and 11 deletions
  1. +4
    -4
      build.sh
  2. +2
    -5
      build_rootfs.sh
  3. +1
    -0
      files/okreader.sh
  4. +1
    -1
      src/koreader
  5. +1
    -1
      src/koreader-pkg/DEBIAN/control

+ 4
- 4
build.sh View File

@@ -139,10 +139,10 @@ compile_koreader() {
chmod +x koreader/restore-wifi-async.sh

cp ../../../files/defaults.persistent.lua koreader/
# Patch lj-wpaclient to prevent excessive scanning latency
sed "s/if ev.lvl == 'INFO' and ev.msg == 'CTRL-EVENT-SCAN-RESULTS'/if ev.msg == 'CTRL-EVENT-SCAN-RESULTS'/" \
./koreader/common/lj-wpaclient/wpaclient.lua > ./koreader/common/lj-wpaclient/wpaclient_patched.lua
mv ./koreader/common/lj-wpaclient/wpaclient_patched.lua ./koreader/common/lj-wpaclient/wpaclient.lua
mkdir koreader/bin
echo "ntpdate pool.ntp.org" > koreader/bin/ntpd
chmod +x koreader/bin/ntpd

cd ../../
dpkg-deb -b koreader-pkg .


+ 2
- 5
build_rootfs.sh View File

@@ -87,7 +87,7 @@ config_rootfs() {
install_packages() {
cp src/linux-okreader-modules_2.6.35.3-1_armhf.deb rootfs/
cp src/firmware-okreader_1.0-2_armhf.deb rootfs/
cp src/koreader_2017.04-2_armhf.deb rootfs/
cp src/koreader_2017.04-3_armhf.deb rootfs/
cp src/kobo_hwconfig/kobo-hwconfig_1.0-1_armhf.deb rootfs/

chroot rootfs/ bash -c "dpkg -i /*.deb"
@@ -107,16 +107,13 @@ clean_up_rootfs() {
rm -R ./rootfs/usr/share/info/*
rm -R ./rootfs/usr/share/doc/*
rm -R ./rootfs/var/log/*
# Disable the NTP daemon
chroot rootfs/ bash -c "update-rc.d ntp disable"

echo "Cleanup done."
}

build_rootfs() {
debootstrap --arch=armhf --variant=minbase \
--include=net-tools,wireless-tools,wpasupplicant,kmod,udev,openssh-server,iputils-ping,ifupdown,vim-tiny,dhcpcd,ntp \
--include=net-tools,wireless-tools,wpasupplicant,kmod,udev,openssh-server,iputils-ping,ifupdown,vim-tiny,dhcpcd,ntpdate \
wheezy ./rootfs http://http.debian.net/debian/

if [ $? -ne 0 ] ; then


+ 1
- 0
files/okreader.sh View File

@@ -4,6 +4,7 @@ echo 0 > /sys/class/leds/pmic_ledsg/brightness

export WIFI_MODULE=brcmfmac

PATH=/opt/koreader/bin:$PATH
cd /opt/koreader
while true; do
./luajit ./reader.lua /mnt


+ 1
- 1
src/koreader

@@ -1 +1 @@
Subproject commit 7cb47d86f5c4a501bc92bd731c8943119ddedfb7
Subproject commit c73a1c1fcf2c83bf44edfad3d06d48199f61f1ff

+ 1
- 1
src/koreader-pkg/DEBIAN/control View File

@@ -1,5 +1,5 @@
Package: koreader
Version: 2017.04-2
Version: 2017.04-3
Maintainer: Cosmin Gorgovan <okreader@linux-geek.org>
Architecture: armhf
Description: An ebook viewer application.

Loading…
Cancel
Save