![]() |
#16 | |
Member
![]() Posts: 22
Karma: 10
Join Date: Oct 2021
Location: Florida, USA
Device: Kindle Keyboard w/ 3G (k3g), Likebook Mars (T80D)
|
I'll try Debian then.
Quote:
(End of reply to Quoth) Using the toolchain gcc-arm-linux-gnueabi from apt on Debian, the build now throws this error: Code:
/tmp/ccjIB5v8.s: Assembler messages: /tmp/ccjIB5v8.s:1045: Error: .err encountered make[1]: *** [scripts/Makefile.build:223: arch/arm/kernel/sys_oabi-compat.o] Error 1 make: *** [Makefile:847: arch/arm/kernel] Error 2 |
|
![]() |
![]() |
![]() |
#17 | ||
rm -rf /
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
|
Quote:
Code:
diff --git a/arch/arm/kernel/sys_arm.c b/arch/arm/kernel/sys_arm.c index 0128687b..b0daaab2 100644 --- a/arch/arm/kernel/sys_arm.c +++ b/arch/arm/kernel/sys_arm.c @@ -35,7 +35,7 @@ extern unsigned long do_mremap(unsigned long addr, unsigned long old_len, unsigned long new_addr); /* common code for old and new mmaps */ -inline long do_mmap2( +extern inline long do_mmap2( unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff) diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index eb51d76e..04612394 100644 --- a/kernel/timeconst.pl +++ b/kernel/timeconst.pl @@ -370,7 +370,7 @@ if ($hz eq '--can') { } @val = @{$canned_values{$hz}}; - if (!defined(@val)) { + if (!@val) { @val = compute_values($hz); } output($hz, @val); Quote:
You can build the koxtoolchains on Ubuntu, you just need to make sure that you've got all of the dependencies installed: Code:
# From this crosstools-ng dockerfile: https://github.com/crosstool-ng/crosstool-ng/blob/0528a9d744cc95aac3df40d5a1666f0a1051cf5d/testing/docker/ubuntu18.04/Dockerfile apt-get install -y gcc g++ gperf bison flex texinfo help2man make libncurses5-dev \ python3-dev autoconf automake libtool libtool-bin gawk wget bzip2 xz-utils unzip \ patch libstdc++6 rsync # From the dependency list on the koxtoolchains repo: sudo apt-get install build-essential autoconf automake bison flex gawk libtool libtool-bin libncurses-dev curl file git gperf help2man texinfo unzip wget |
||
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Member
![]() Posts: 22
Karma: 10
Join Date: Oct 2021
Location: Florida, USA
Device: Kindle Keyboard w/ 3G (k3g), Likebook Mars (T80D)
|
Quote:
Also I couldn't find Module.symvers anywhere on the kindle. dmesg included complaints of no symbol verisons, which are enabled. Code:
root@kindle root# cat /proc/config.gz | gzip -cd | grep -i modversions CONFIG_MODVERSIONS=y |
|
![]() |
![]() |
![]() |
#19 | |
rm -rf /
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
|
Quote:
You could, I'd advise having a serial adapter and some means of recovery at hand before flashing a custom kernel though. |
|
![]() |
![]() |
![]() |
#20 | |
Member
![]() Posts: 22
Karma: 10
Join Date: Oct 2021
Location: Florida, USA
Device: Kindle Keyboard w/ 3G (k3g), Likebook Mars (T80D)
|
Quote:
scsi_mod: Unknown symbol dump_stack The solution to this seems to be use Module.symvers to build the modules against, but find / -name Module.symvers returns nothing. I might flash a kernel if we can't get the symbol versions. I have many USB to UART adapters (including a Bus Pirate v3.6), but what does "some means of recovery" refer to? Also, where is the serial port? Didn't see any labeled test points on the mainboard when I looked at mine. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | ||
rm -rf /
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 219
Karma: 3333683
Join Date: Nov 2019
Location: United Kingdom
Device: K5, KT, KT2, KT3, KT4, KV, PW2, PW3, PW4, PW5
|
Quote:
This article might be helpful too - there's a bit about extracting Modules.symvers from a zImage (you can get this from a uImage by chopping off the first 64 bytes IIRC) : Building a Linux kernel module without the exact kernel headers Quote:
The serial port on K3 is documented here - you want an adapter capable of 1.8v; the baud rate is the usual 115200 8N1. |
||
![]() |
![]() |
![]() |
#22 | |
Member
![]() Posts: 22
Karma: 10
Join Date: Oct 2021
Location: Florida, USA
Device: Kindle Keyboard w/ 3G (k3g), Likebook Mars (T80D)
|
After no readily available info about the kindles u-boot turned up after a web search, I decided to take a break from working on this niche task.
Quote:
|
|
![]() |
![]() |
![]() |
Tags |
expansion, hardware modding, modem, storage, usb mass storage |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
K3 Swapping the 3G modem for a 4G modem | wishindo | Kindle Developer's Corner | 5 | 07-27-2023 10:47 PM |
USB (flash drive) to iPad | yankgirl | Apple Devices | 11 | 07-17-2011 06:48 PM |
Does Kindle spread USB virus like USB flash drive? | rockchen | General Discussions | 49 | 02-17-2011 10:03 AM |
FBReader and USB Flash Drive | desertblues | iRex | 0 | 03-15-2010 09:37 AM |