![]() |
#1 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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 keep finding myself searching back to other threads for titbits that I keep forgetting...
So. I fully intend to just jam them all in one thread. This one. so.. pursuant to this. Here is post one http://fedoraforum.org/forum/showthr...=282039&page=2 Hello world. in one or two languages ![]() Quote:
Last edited by twobob; 10-17-2013 at 11:49 PM. |
|
![]() |
![]() |
![]() |
#2 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
building with static libstdc++ and rpaths for configure:
LDFLAGS="-Wl,-rpath,/mnt/us/extensions/thing/usr/lib -static-libstdc++" ./configure --prefix=/mnt/us/extensions/thing/usr |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Developer's Corner Mascot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
Thanks for sharing!
|
![]() |
![]() |
![]() |
#4 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
kindle-friendly arm debian run on a local machine
https://www.mobileread.com/forums/sho...46&postcount=6 Last edited by twobob; 10-17-2013 at 08:30 PM. |
![]() |
![]() |
![]() |
#5 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
"-static-libgcc -static-libstdc++"
chatter http://gcc.gnu.org/ml/gcc-help/2011-01/msg00228.html Linking libc statically http://www.trilithium.com/johan/2005/06/static-libstdc/ and the LSB tools http://www.linuxfoundation.org/colla...workgroups/lsb This stuff is all experimental thoughts for making SID stuff run on ancient devices. EDIT: This will probably never happen as qemu "Segmentation fault (core dumped)" more often than not on SID... will wait for a newer qemu or maybe even throw it at Jessie. Last edited by twobob; 10-17-2013 at 07:55 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
running a custom gdb.
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#7 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
|
![]() |
![]() |
![]() |
#8 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
Creating patches with diff
To create a patch for a single file: diff -u original.c new.c > original.patch To create a patch for an entire source tree: diff -rupN original/ new/ > original.patch |
![]() |
![]() |
![]() |
#9 | ||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
Creating swap file (for extreme situations only)
mknod /dev/swap b 7 8 #b=block device, 7=use loop driver, 8=loop device number mkdir /mnt/base-us/swap cd /mnt/base-us/swap dd if=/dev/zero of=swapfile bs=1M count=512 Quote:
mkswap /dev/swap Quote:
OR: dd if=/dev/zero of=/mnt/base-us/swap.img bs=1M count=1K # 1GB! mkswap /mnt/base-us/swap.img swapon /mnt/base-us/swap.img Last edited by twobob; 10-21-2013 at 10:04 PM. |
||
![]() |
![]() |
![]() |
#10 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
the following example will make the seed 500MB into a 2 Gb partition
FILENAME=/mnt/base-us/deb.5gb.ext3 dd if=/dev/zero of=$FILENAME bs=1M count=1500 oflag=append conv=notrunc e2fsck -f $FILENAME resize2fs $FILENAME (You can choose ANY size just swap the 1500 for however many MB you want ADDED) SEE THIS POST FOR A KINDLE DD THAT SUPPORTS THE RIGHT OPTIONS, (or do it on your PC) That seems an efficient solution. Alternately as pointed out by Icantbebothered: FILENAME=/mnt/base-us/deb.5gb.ext3 dd if=/dev/zero bs=1M count=512 >> $FILENAME e2fsck -f $FILENAME resize2fs $FILENAME that last command is to be used on a NON MOUNTED system only... Spoiler:
Last edited by twobob; 10-21-2013 at 08:02 PM. |
![]() |
![]() |
![]() |
#11 | |||||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
Setting up a swapfile over NBD
on donor PC: apt-get nbd-server then after you make a swapfile (see dd command above) share it. nbd-server 1024 /home/me/STUFF-FOR-DEBIAN/swapfile (thats port 1024) Quote:
mkswap /home/me/STUFF-FOR-DEBIAN/swapfile Quote:
THEN on debian (on kindle) dump the relevant kernel modules in /lib/modules I needed: https://bitbucket.org/twobob/kual-sy...b126?at=master (if you don't do this step.. the next step will error like: Starting NBD client process: libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/2.6.31-rt11-lab126/modules.dep.bin') then install nbd-client root@kindle:/usr/local/src/webkit-1.8.1# apt-get install nbd-client Quote:
next up EDIT the file in /etc/nbd-client Quote:
root@kindle:/usr/local/src/webkit-1.8.1# /etc/init.d/nbd-client start Quote:
EDIT: This is also HIGHLY risky... see... http://thread.gmane.org/gmane.linux.kernel.mm/62008 http://article.gmane.org/gmane.linux.kernel.mm/62008 Last edited by twobob; 10-25-2013 at 12:59 AM. |
|||||
![]() |
![]() |
![]() |
#12 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
ccache over sshfs.
This might be a stupid idea. but. meh. figure out - on the kindle - where your ccache is stored. for me it was /mnt/us/debian/mnt/us/home/root/.ccache then on your PC create a folder to swap to: mkdir -p /place/you/want/ccache (I used /home/me/ccache) then on the kindle (not in debian) sshfs me@dev:/home/me/ccache /mnt/us/debian/mnt/us/home/root/.ccache and we are done [root@kindle root]# df -h Quote:
EDIT: okay this wasn't a great idea. locked up the device.. ;P just use sshfs for sensible things then. hehehehe Last edited by twobob; 10-24-2013 at 12:29 PM. |
|
![]() |
![]() |
![]() |
#13 | |||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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
|
![]()
building qemu-arm statically from GIT
Clone the latest qemu from git http://git.qemu.org/qemu.git, then configure and make it cd ~/GIT/qemu/arm-linux-user git clone http://git.qemu.org/qemu.git cd qemu ./configure --target-list="arm-linux-user" --disable-kvm --disable-strip --disable-xen --disable-spice --disable-werror --prefix=/usr/local --disable-bsd-user --static make; make install Check if we NEED to register the type with binfmt_misc... dev binfmt_misc # cat /proc/sys/fs/binfmt_misc/qemu-arm If this WASN'T populated... echo to register Code:
enabled interpreter /usr/bin/qemu-arm-static flags: OC offset 0 magic 7f454c4601010100000000000000000002002800 mask ffffffffffffff00fffffffffffffffffeffffff (Only if the above is NOT already registered) Code:
echo ":qemu-arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-arm:" > /proc/sys/fs/binfmt_misc/register since I already HAVE the debian version on my system move that binary it out the way and use that binfmt_misc registration for ourselves... mv /usr/bin/qemu-arm-static /usr/bin/qemu-arm-static-debian cp /home/me/GIT/qemu/arm-linux-user/qemu-arm /usr/bin/qemu-arm-static mount something we want to chroot into sudo mount -t ext /home/me/IMAGES-FOR-DEBIAN/jessie.ext3 /mnt/jessie/ check what we built is kosher. me@dev ~/GIT/qemu/arm-linux-user $ readelf -d ./qemu-arm (as opposed to 1.0.50 in the repos)Quote:
Quote:
me@dev ~/GIT/qemu/arm-linux-user $ ./qemu-arm --help Spoiler:
copy it into our debian victim cp /usr/bin/qemu-arm-static /home/me/IMAGES-FOR-DEBIAN/usr/bin/qemu-arm-static chroot in sudo chroot /mnt/debian /bin/bash Quote:
Debian build log https://buildd.debian.org/status/fet...amp=1322591568 What those build warnings mean to end users. https://lists.gnu.org/archive/html/q.../msg04789.html seems to work okay. Last edited by twobob; 10-24-2013 at 10:03 PM. |
|||
![]() |
![]() |
![]() |
#14 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 456
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Quote:
"patch -p1 -b < file.patch" works well for me... |
|
![]() |
![]() |
![]() |
#15 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299991
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 guess you can either:
make clean Delete most generated files make distclean Remove editor backup files, patch leftover files and whatnot Or (if you have one like in a kernel build) make mrproper Delete the current configuration, and all generated files. Check the makefile for the cleansing options available. Generally, making a copy of finished project and the original source is never a terrible idea. and cleaning / diffing those. |
![]() |
![]() |
![]() |
Tags |
hello world, kindle, languages, titbits, twobob |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Free (K) World's Collider: A Shared-World Anthology [Science Fiction/Horror] | kg3 | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 09-14-2012 06:06 PM |
Kindle free book: Hungarian Cookbook: Old World Recipes for New World Cooks, Expanded | greencat | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 06-15-2011 04:07 AM |
UK/DE Kindle free book: World Kitchen: World Recipes | greencat | Deals and Resources (No Self-Promotion or Affiliate Links) | 1 | 06-02-2011 10:53 AM |
Old World and New World Computing | kjk | Apple Devices | 0 | 01-31-2010 02:09 PM |