Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-08-2012, 05:09 AM   #136
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post
https://www.mobileread.com/forums/sho...1&postcount=73

The first "wget" command fetches the pre-built copy of the emulated system.

I now see that post has two topics, the reference to the newly built qemu and directions on downloading the emulated system.

I fixed up the description in the tools index to be more clear.
https://wiki.mobileread.com/wiki/Tool...mulated_Native
Publicly pays homage. Superstar. *Goes about giving it a read again*
twobob is offline   Reply With Quote
Old 08-08-2012, 08:55 AM   #137
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post

Download the attached tar-ball.

Installation:
core2quad ~ $ sudo tar -C /opt --extract --file=qemu-1.1.1-arm.tar.gz
core2quad ~ $ /opt/qemu111/bin/qemu-system-arm --version
QEMU emulator version 1.1.1, Copyright (c) 2003-2008 Fabrice Bellard

...

I would like to hear some feedback from others on this build
Just using your d/l direct I get

Code:
twobob@dev ~/BLDS/system-image-armv6l $ \
/opt/qemu111/bin/qemu-system-arm --version

/opt/qemu111/bin/qemu-system-arm: error while loading shared libraries: 
libjpeg.so.62: cannot open shared object file: No such file or directory

I'll do the full build myself again - this time for 32 bit mint - and see how I go


Extra info:

twobob@dev ~/BLDS/system-image-armv6l $ find /usr -name libjpeg*
/usr/lib/gthumb/extensions/libjpeg_utils.so
/usr/lib/i386-linux-gnu/libjpeg.so.8.0.2
/usr/lib/i386-linux-gnu/libjpeg.so.8
/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/libjpeg.so

Last edited by twobob; 08-08-2012 at 09:04 AM. Reason: formattery
twobob is offline   Reply With Quote
Advert
Old 08-08-2012, 09:01 AM   #138
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Try installing (apt-get install libjpeg62) the libjpeg libraries first.
Your newer version of Linux-Mint may not have them installed (or have libjpeg8 installed).

That post __was__ built on 32bit Linux-Mint.

Last edited by knc1; 08-08-2012 at 09:03 AM.
knc1 is offline   Reply With Quote
Old 08-08-2012, 09:58 AM   #139
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
In search of the Grayul

Quote:
Originally Posted by knc1 View Post
Try installing (apt-get install libjpeg62) the libjpeg libraries first.
Your newer version of Linux-Mint may not have them installed (or have libjpeg8 installed).

That post __was__ built on 32bit Linux-Mint.
Yup. I figured as much about the build env : )

kk. Installing the libs now. Thanks for the heads up. No doubt there is some supremely easy and well documented way of just knowing these things.

The Howto HolyGrail : D

As you suspected: Not installed
Code:
After this operation, 229 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ precise/main libjpeg62 i386 6b1-2ubuntu1 [87.0 kB]
Fetched 87.0 kB in 0s (270 kB/s)   
Selecting previously unselected package libjpeg62.
(Reading database ... 227850 files and directories currently installed.)
Unpacking libjpeg62 (from .../libjpeg62_6b1-2ubuntu1_i386.deb) ...
blah de blah...

Last edited by twobob; 08-08-2012 at 10:01 AM. Reason: added confirmation
twobob is offline   Reply With Quote
Old 08-08-2012, 10:03 AM   #140
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Sweeeet

Code:
twobob@dev ~/BLDS/system-image-armv6l $ \
/opt/qemu111/bin/qemu-system-arm --version
QEMU emulator version 1.1.1, Copyright (c) 2003-2008 Fabrice Bellard
Nice one.
twobob is offline   Reply With Quote
Advert
Old 08-08-2012, 10:23 AM   #141
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Emu a gogo

Quote:
Originally Posted by knc1 View Post
This is the simplest DIY-KeK environment I can think of for the person with just one or a few small native code Kindle applications to compile.
  • Download and un-pack two archives
  • Make one decision (which directory of the three)
  • Type one shell script command.
'Twill be awesome. Thanks for this. Time to tweak.
hmm. /dev/dsp... student excerise... : )

The working Emu initial Outies:
Spoiler:
twobob@dev ~/BLDS/system-image-armv6l $ echo $PATH
/opt/qemu111/bin:/home/twobob/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
twobob@dev ~/BLDS/system-image-armv6l $ ./run-emulator.sh oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
audio: Failed to create voice `lm4549.out'
Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.4.0 (mszick@core2quad) (gcc version 4.2.1) #1 Sat Jul 14 08:57:51 CDT 2012
CPU: ARMv6-compatible processor [4107b362] revision 2 (ARMv6TEJ), cr=00c5387d
CPU: VIPT aliasing data cache, unknown instruction cache
Machine: ARM-Versatile PB
Memory policy: ECC disabled, Data cache writeback
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: root=/dev/sda rw init=/sbin/init.sh panic=1 PATH=/bin:/sbin console=ttyAMA0 HOST=armv6l
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126920k/126920k available, 4152k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
.text : 0xc0008000 - 0xc0284000 (2544 kB)
.init : 0xc0284000 - 0xc029d000 ( 100 kB)
.data : 0xc029e000 - 0xc02c0ee0 ( 140 kB)
.bss : 0xc02c0ee0 - 0xc02e9368 ( 162 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:192
VIC @f1140000: id 0x00041190, vendor 0x41
Console: colour dummy device 80x30
Calibrating delay loop... 362.49 BogoMIPS (lpj=1812480)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x217ac0 - 0x217af8
devtmpfs: initialized
NET: Registered protocol family 16
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO 0x101f1000 (irq = 12) is a PL011 rev1
console [ttyAMA0] enabled
dev:f2: ttyAMA1 at MMIO 0x101f2000 (irq = 13) is a PL011 rev1
dev:f3: ttyAMA2 at MMIO 0x101f3000 (irq = 14) is a PL011 rev1
fpga:09: ttyAMA3 at MMIO 0x10009000 (irq = 38) is a PL011 rev1
PCI core found (slot 11)
PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x44000000-0x4fffffff]
pci_bus 0000:00: root bus resource [mem 0x50000000-0x5fffffff]
pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff pref]
PCI: bus0: Fast back to back transfers disabled
PCI map irq: slot 0, pin 1, devslot 12, irq: 27
PCI map irq: slot 0, pin 1, devslot 13, irq: 27
pci 0000:00:0c.0: BAR 6: assigned [mem 0x60000000-0x6000ffff pref]
pci 0000:00:0d.0: BAR 2: assigned [mem 0x50000000-0x50001fff]
pci 0000:00:0d.0: BAR 1: assigned [mem 0x50002000-0x500023ff]
pci 0000:00:0c.0: BAR 0: assigned [io 0x44000000-0x440000ff]
pci 0000:00:0c.0: BAR 1: assigned [mem 0x50002400-0x500024ff]
pci 0000:00:0d.0: BAR 0: assigned [io 0x44000400-0x440004ff]
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
Switching to clocksource timer3
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
9p: Installing v9fs 9p2000 file system support
msgmni has been set to 247
io scheduler noop registered (default)
loop: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ide-cd driver 5.00
PCI: enabling device 0000:00:0d.0 (0100 -> 0103)
sym0: <895a> rev 0x0 at pci 0000:00:0d.0 irq 27
sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking
sym0: SCSI BUS has been reset.
scsi0 : sym-2.2.3
sym0: unknown interrupt(s) ignored, ISTAT=0x5 DSTAT=0x80 SIST=0x0
scsi 0:0:0:0: Direct-Access QEMU QEMU HARDDISK 1.1. PQ: 0 ANSI: 5
scsi target0:0:0: tagged command queuing enabled, command queue depth 16.
scsi target0:0:0: Beginning Domain Validation
scsi target0:0:0: Domain Validation skipping write tests
scsi target0:0:0: Ending Domain Validation
scsi 0:0:2:0: CD-ROM QEMU QEMU CD-ROM 1.1. PQ: 0 ANSI: 5
scsi target0:0:2: tagged command queuing enabled, command queue depth 16.
scsi target0:0:2: Beginning Domain Validation
scsi target0:0:2: Domain Validation skipping write tests
scsi target0:0:2: Ending Domain Validation
sr0: scsi3-mmc drive: 16x/50x cd/rw xa/form2 cdda tray
cdrom: Uniform CD-ROM driver Revision: 3.20
8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
PCI: enabling device 0000:00:0c.0 (0100 -> 0103)
8139cp 0000:00:0c.0: eth0: RTL-8139C+ at 0xc882e400, 52:54:00:12:34:56, IRQ 27
mousedev: PS/2 mouse device common for all mice
sd 0:0:0:0: [sda] 52064 512-byte logical blocks: (26.6 MB/25.4 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
rtc-pl031 dev:e8: rtc core: registered pl031 as rtc0
TCP: cubic registered
NET: Registered protocol family 17
9pnet: Installing 9P2000 support
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4
sda: unknown partition table
rtc-pl031 dev:e8: setting system clock to 2012-08-08 14:12:38 UTC (1344435158)
sd 0:0:0:0: [sda] Attached SCSI disk
VFS: Mounted root (squashfs filesystem) readonly on device 8:0.
Freeing init memory: 100K
8139cp 0000:00:0c.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
Not using distcc.
Type exit when done.
(armv6l:1) /home #
twobob is offline   Reply With Quote
Old 08-08-2012, 01:02 PM   #142
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
How to fix an inode error for dummies

Whoopsie.

Code:
EXT4-fs error (device sdb): ext4_lookup:1044: inode #2: comm ls: deleted inode referenced: 15
ls: ./xz504-static-arm.tar.gz: Input/output error
And during boot : )
Spoiler:

NET: Registered protocol family 17
9pnet: Installing 9P2000 support
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4
sda: unknown partition table
sd 0:0:1:0: [sdb] 4194304 512-byte logical blocks: (2.14 GB/2.00 GiB)
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:1:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sdb: unknown partition table
sd 0:0:1:0: [sdb] Attached SCSI disk
rtc-pl031 dev:e8: setting system clock to 2012-08-08 16:57:11 UTC (1344445031)
sd 0:0:0:0: [sda] Attached SCSI disk
VFS: Mounted root (squashfs filesystem) readonly on device 8:0.
Freeing init memory: 100K
8139cp 0000:00:0c.0: eth0: link up, 100Mbps, full-duplex, lpa 0x05E1
EXT4-fs (sdb): mounting ext3 file system using the ext4 subsystem

EXT4-fs (sdb): warning: mounting fs with errors, running e2fsck is recommended
EXT4-fs (sdb): recovery complete
EXT4-fs (sdb): mounted filesystem with ordered data mode. Opts: (null)
Not using distcc.

Heh, running e2fsck, any ideas, I'm struggling to conceptualise the device.

EDIT: Simply point it at the file...

twobob@dev ~/BLDS/system-image-armv6l $ e2fsck -v hdb.img
Spoiler:

e2fsck 1.42 (29-Nov-2011)
hdb.img: recovering journal
hdb.img contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Entry 'xz504-static-arm.tar.gz' in / (2) has deleted/unused inode 15. Clear<y>? yes

Pass 3: Checking directory connectivity
Unconnected directory inode 135169 (/???)
Connect to /lost+found<y>? yes

Unconnected directory inode 270337 (/???)
Connect to /lost+found<y>? yes

Unconnected directory inode 409601 (/???)
Connect to /lost+found<y>? yes

Pass 4: Checking reference counts
Inode 2 ref count is 6, should be 9. Fix<y>? yes

Unattached inode 12
Connect to /lost+found<y>? yes

Inode 12 ref count is 2, should be 1. Fix<y>? yes

Unattached inode 16
Connect to /lost+found<y>? yes

Inode 16 ref count is 2, should be 1. Fix<y>? yes

Inode 135169 ref count is 8, should be 7. Fix<y>? yes

Inode 270337 ref count is 3, should be 2. Fix<y>? yes

Inode 409601 ref count is 14, should be 13. Fix<y>? yes

Pass 5: Checking group summary information
yyBlock bitmap differences: -(1703--1706) -(1723--1728) -(2260--2264) -(2287--2288) -(2519--2520) -(6039--6428) +(10225--10230) +(10257--10260) +(10574--10637) +(10769--10771) +(10865--10880) +(10977--11008)yyyy +(11137--11264)
Fix<y>? yes

yyFree blocks count wrong for group #0 (3445, counted=448).
Fix<y>? yes

Free blocks count wrong for group #1 (7254, counted=4920).
Fix<y>? yes

Free blocks count wrong for group #2 (7678, counted=5296).
Fix<y>? yes

Free blocks count wrong for group #3 (7413, counted=5518).
Fix<y>? yes

Free blocks count wrong for group #4 (7678, counted=4299).
Fix<y>? yes

Free blocks count wrong for group #5 (7413, counted=4787).
Fix<y>? yes

Free blocks count wrong for group #6 (7678, counted=6168).
Fix<y>? yes

Free blocks count wrong for group #7 (7413, counted=6689).
Fix<y>? yes

Free blocks count wrong for group #66 (7678, counted=6972).
Fix<y>? yes

Free blocks count wrong (1903025, counted=1884472).
Fix<y>? yes

yInode bitmap differences: -15
Fix<y>? yes

Free inodes count wrong for group #66 (2048, counted=1854).
Fix<y>? yes

Directories count wrong for group #66 (0, counted=14).
Fix<y>? yes

Free inodes count wrong (521820, counted=521626).
Fix<y>? yes


hdb.img: ***** FILE SYSTEM WAS MODIFIED *****

2662 inodes used (0.51%)
233 non-contiguous files (8.8%)
12 non-contiguous directories (0.5%)
# of inodes with ind/dind/tind blocks: 438/21/0
212680 blocks used (10.14%)
0 bad blocks
0 large files

2407 regular files
246 directories
0 character device files
0 block device files
0 fifos
4294967293 links
0 symbolic links (0 fast symbolic links)
0 sockets
--------
2648 files


Sorted.

Last edited by twobob; 08-08-2012 at 01:15 PM. Reason: Sorted it.
twobob is offline   Reply With Quote
Old 08-08-2012, 01:41 PM   #143
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
This note is about x86 (32bit) **native** compiles, but since it effects things being built for posting in this thread . . .

The Ubuntu gcc: 'Ubuntu/Linaro 4.6.1-9ubuntu3'
Has one bug and one configuration option incorrect.

The bug: Is in the author's source code, not in the compiler.

The configuration error:
The notation: -L/search/path/
is **supposed** to be put first on the library search paths, before the built-in search paths . . .
It is not - it is being put **second** - after the first path to the multi-lib/multi-arch library path.

Hmm...
Which is probably why all of the trouble getting 32bit stuff to run on a 64bit install (it **should** just work - if the compiler wasn't hosed up).

The work-around for that depends on what your trying to build.

For what I am building at the moment, (against libusb), removing the libusb* files from:
/lib/i386-linux-gnu/
So that both the loader and the linker find the ones in /usr/local/lib first may have done the job - until the package manager finds the installed packages "broken" the next time it tries to update libusb*

Last edited by knc1; 08-09-2012 at 06:53 AM.
knc1 is offline   Reply With Quote
Old 08-08-2012, 01:55 PM   #144
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
So I'm working on porting ncurses:

Code:
cd

(armv6l:1) wget: http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz

(armv6l:1) tar -xvf ncurses-5.9.tar.gz

(armv6l:1) cd ncurses-5.9

(armv6l:1) /home/ncurses-5.9 #

ANNOUNCE              c++                   lib
AUTHORS               config.guess          man
Ada95                 config.log            menu
INSTALL               config.status         misc
MANIFEST              config.sub            mk-0th.awk
Makefile              configure             mk-1st.awk
Makefile.in           configure.in          mk-2nd.awk
Makefile.os2          convert_configure.pl  mk-dlls.sh.in
NEWS                  dist.mk               mk-hdr.awk
README                doc                   ncurses
README.MinGW          edit_man.sh           obj_g
README.emx            form                  objects
TO-DO                 headers.sh            panel
aclocal.m4            include               progs
announce.html.in      install-sh            test
configure goes thru okay although I believe I should be pointing it to a /home install location.

Code:
** Configuration summary for NCURSES 5.9 20110404:

     extended funcs: yes
     xterm terminfo: xterm-new

      bin directory: /usr/bin
      lib directory: /usr/lib
  include directory: /usr/include
      man directory: /usr/man
 terminfo directory: /usr/share/terminfo
I'll read back through the threads until I find the bit about this and then continue this.

Last edited by twobob; 08-08-2012 at 01:56 PM. Reason: added conf outy
twobob is offline   Reply With Quote
Old 08-08-2012, 02:08 PM   #145
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
^this

Quote:
Originally Posted by knc1 View Post
What some users probably need is a build of [this] with SYSROOT=/mnt/us included in the configure; maybe even add /mnt/us/lib and /mnt/us/include into the [tcc-static] search paths. But those are documented options in the ./configure --help file and now anyone can do it with these two posts.
^This. reading...
twobob is offline   Reply With Quote
Old 08-08-2012, 02:12 PM   #146
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
You got it correct - use a:
--prefix=/home
option to configure for running in the emulator (/home is the only place you can write)

use a:
--prefix=/mnt/us
option to configure for running in the Kindle.

When doing the "make install" step -
mkdir /home/<something>
DESTDIR=/home/<something> make install

Then cd to /home/<something>
and create a tar-ball of everything below it (for un-packing into /mnt/us)
as in: tar -czf something.tar.gz .
notice the trailing "space dot" in that command
knc1 is offline   Reply With Quote
Old 08-08-2012, 02:25 PM   #147
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post
You got it correct
Bloody hell, I suppose I had to eventually, just by sheer force of numbers

** Configuration summary for NCURSES 5.9 20110404:

extended funcs: yes
xterm terminfo: xterm-new

bin directory: /home/bin
lib directory: /home/lib
include directory: /home/include/ncurses
man directory: /home/man
terminfo directory: /home/share/terminfo

** Include-directory is not in a standard location
twobob is offline   Reply With Quote
Old 08-08-2012, 02:27 PM   #148
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I have a stupid question.

Other than the RW problem
What's to prevent mkdir /mnt/us; ln -s mnt/us ~/ (or something) to stop the extra /home || mnt/us faffing in the future. Or is that a stupid question?
twobob is offline   Reply With Quote
Old 08-08-2012, 02:38 PM   #149
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: Check my ncurses stage (or a Gentoo ebuild) if you want to preserve ABI compatiblity with previous ncurses version (5.4), there's a bunch of flags to pass to configure to avoid mismatch in data types. Not sure which version of ncurses the K3 bundles, so it might not be critical (it might even be counter productive, depending on how the Kindle's ncurses was built), but I always build ncurses that way, just to be safe .

In fact, checking the Gentoo ebuild and configure --help are the two things I usually do first when trying to x-compile something new .

@twobob/knc1: You probably only really need to use a staged /mnt/us as the autotools prefix in very few cases, when stuff actually hardcode paths (OpenSSH, I'm looking at you), or inject an rpath at the linking stage.

Last edited by NiLuJe; 08-08-2012 at 02:46 PM.
NiLuJe is offline   Reply With Quote
Old 08-08-2012, 02:39 PM   #150
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by twobob View Post
I have a stupid question.

Other than the RW problem
What's to prevent mkdir /mnt/us; ln -s mnt/us ~/ (or something) to stop the extra /home || mnt/us faffing in the future. Or is that a stupid question?
If you can write to /mnt ...
Nothing.

But the "DESTDIR= ..." thing allows you to build archives that can be directly unpacked into /mnt/us from per-package top directories.

If you directly install the /mnt/us (however you get it to be present), then once you build your second package, you have to start sorting out the various package parts from /mnt/us/*

- - - -

Sometimes, when BOPC (building other people's code) you have to enter into a Zen-like trance and try to channel into the author's mind with a: "What the p... where you thinking when ...." .

- - - -

Yup, I agree.
You haven't asked yet, but we most probably need to build our own version of a rootfs rather than use Rob's idea of a rootfs.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessories DIY KT Case echo013 Amazon Kindle 2 01-27-2012 06:53 PM
DIY Stylus scottjl Apple Devices 3 05-10-2010 01:52 AM
DIY Scanner Eratosthenes News 14 04-16-2010 04:21 PM
DIY Idea sřrensundsans Sony Reader 6 01-26-2010 01:25 AM
DIY stylus -Thomas- iRex 5 02-12-2009 12:05 PM


All times are GMT -4. The time now is 12:52 AM.


MobileRead.com is a privately owned, operated and funded community.