I'm an app developer, and have now received three reports of Nexus 10s, each with a different ROM, rebooting immediately after the Linux "ping" command is invoked.
ROMs include, but are not limited to:
mrRobinson's buttered AOKP (reported 26 April 2013)
ParanoidAndroid 3.90 (reported 3 August 2013)
CM10.2 (reported 17 August 2013)
I believe the early first case is a 4.2 ROM, while the second two are 4.3.
The exact ping command I'm invoking is:
Code:
ping -n -w 6 -c 5 somecomputername
The options on that command are:
-n (no hostname lookup, numeric output only)
-w 6 (6 second deadline)
-c 5 (stop after sending at most 5 ECHO_REQUEST packets)
I'm guessing just "ping somecomputername" will cause the problem though.
I'm posting this because I'm curious to see how widespread the issue might be. As it stands I have no idea where to report it. There may be a problem somewhere upstream of these ROM developers, but whether that's in AOSP or in common code used in a variety of ROMs is unknown to me.
If anyone could kindly check whether there device reboots as result of a ping command, I'd greatly appreciate it. I'm especially interested in whether or not a stock device will do it. And obviously, please do bear in mind that the device might spontaneously reboot if you try this.
Thanks!
Code:
/ # ping -n -w 6 -c 5 www.cnn.com
PING cnn-56m.gslb.vgtf.net (157.166.248.11) 56(84) bytes of data.
--- cnn-56m.gslb.vgtf.net ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5007ms
/ # ping -n -w 6 -c 5 www.spiegel.de
PING www.spiegel.de (62.138.116.3) 56(84) bytes of data.
64 bytes from 62.138.116.3: icmp_seq=1 ttl=246 time=38.5 ms
64 bytes from 62.138.116.3: icmp_seq=2 ttl=246 time=48.5 ms
64 bytes from 62.138.116.3: icmp_seq=3 ttl=246 time=45.5 ms
64 bytes from 62.138.116.3: icmp_seq=4 ttl=246 time=47.6 ms
64 bytes from 62.138.116.3: icmp_seq=5 ttl=246 time=47.0 ms
--- www.spiegel.de ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 38.520/45.452/48.500/3.603 ms
Works without reboot on flaming monkey, trinity_tn TX10.
BTW: -n only makes sense when pinging on addresses. -n suspresses reverse lookups but no lookups.
I'be forgotten to paste my third test: pinging an unresolveble hostname. Works without crash too.
I'll confirm I've got the same problem. Running Cyanogenmod (cm-10.2-20131102-SNAPSHOT-M1). All it takes is a ping <host> it reboots. Never noticed it until today. But never tried until today as far as I remember.
Related
Hi All,
I have been trying to find the best way to configure my swap for my android phone, currently the G1. I had started out with the regular swap partition but find my phone performance degraded over time thus I decided to test the usual read/write for my Class 6 Micro SDHC card.
Configure the SD card via fdisk and setup 3 partitions (like everyone else).
Command (m for help): p
Disk /dev/sdm: 8166 MB, 8166309888 bytes
224 heads, 56 sectors/track, 1271 cylinders
Units = cylinders of 12544 * 512 = 6422528 bytes
Disk identifier: 0x3114df25
Device Boot Start End Blocks Id System
/dev/sdm1 1 800 5017572 c W95 FAT32 (LBA)
/dev/sdm2 801 1100 1881600 83 Linux
/dev/sdm3 1101 1271 1072512 82 Linux swap / Solaris
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Afterward, format the drive as vfat, ext3, swap
localhost ~ # mkfs.vfat /dev/sdm1
mkfs.vfat 3.0.1 (23 Nov 2008)
localhost ~ # mkfs.ext3 /dev/sdm2
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
117600 inodes, 470400 blocks
23520 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=482344960
15 block groups
32768 blocks per group, 32768 fragments per group
7840 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
localhost ~ # mkswap /dev/sdm3
Setting up swapspace version 1, size = 1072508 KiB
no label, UUID=2046ef6b-ac5a-47a2-9484-ea2a356cc7fa
now the read performance via "hdparm -t /dev/sdxxx"
sdm1 (fat) = Timing buffered disk reads: 26 MB in 3.12 seconds = 8.34 MB/sec
sdm2 (ext3) = Timing buffered disk reads: 26 MB in 3.11 seconds = 8.35 MB/sec
sdm3 (swap) = Timing buffered disk reads: 26 MB in 3.08 seconds = 8.45 MB/sec
as you can see, reading is more or less the same across the board.
now the fun part of write. for fat and ext3, I decided to write to a file, for the swap partition, I decided to write directly to the partition.
FAT:
localhost ~ # dd count=30 bs=1M if=/dev/urandom of=sdm1/test.write
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 4.9464 s, 6.4 MB/s
EXT3:
localhost ~ # dd count=30 bs=1M if=/dev/urandom of=sdm2/test.write
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 4.94644 s, 6.4 MB/s
SWAP:
localhost ~ # dd count=30 bs=1M if=/dev/urandom of=/dev/sdm3
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 8.79714 s, 3.6 MB/s
As you can see, write to a FAT or EXT3 partition seems to be faster than writing to a swap partition. Of course, this is assuming I have done my test correctly . If writing to FAT or EXT3 is faster and reads are the same, would it mean that you get better SWAP performance via a swap file on an EXT3 partition?
thanx for the interesting read
Your write test is flawed.
Flaw 1: You use /dev/urandom as a data source. Data generation from /dev/urandom is heavily affected by CPU usage AND by available entropy -- though it doesn't block, its speed does vary drastically.
Flaw 2: You only run the test ONCE. This means that issues from flaw 1 are totally visible rather than being averaged out over a large number of tests. You should do the test 100's of times and take the average over them.
Flaw 3: Implementation of the ext3 filesystem tend to hide the effects of disk latency. There are caches and journals that you haven't accounted for. In order to get the ACTUAL time that it takes to write to the ext3 filesystem, you need to follow the write test by a synchronization, which will *actually* write the data to the disk (i.e., it will BLOCK until the write is actually completed). Unfortunately though, this test will also synchronize OTHER write operations that are buffered, which will further skew your results. What you REALLY need to do is perform the tests on a completely empty partition. Should be starting sync, begin time, test write, finishing sync, finishing time. Elapsed time = finishing time - begin time.
In other words, I'm sorry, but your conclusions are not correct. What I *very strongly* suspect, is that if you do your tests correctly, you will find that the performance of swap-on-ext3 will actually be *lower* than swap-on-partition due to the extra overhead of the ext3 filesystem.
Note: the linux vfat filesystem implementation also buffers writes.
A little bit of fun trivia:
Back in the days when we actually used floppy disks, you could actually copy an entire disk worth of data over to a vfat floppy disk without it even BEGINNING to write to the disk. Usually, it would begin writing several seconds after the copy "completed". If you wanted to speed it along, a sync or umount would force the buffer immediately to write to disk.
ahhh...thanks for the info. I guess with buffer, it makes timing or calculating the write speed a bit difficult. I will have to think more about this.
This really makes me wonder how do SD card manufactures test their write speed and assign the card class.
I believe they do a test similar to yours without any buffering and write different amounts of data to simple file systems.
Then, according to http://en.wikipedia.org/wiki/Secure_Digital the class number is equal to the amount of minimum write megabytes per second that can be written to the disk when in a clean and unfragmented state. So a class 6 card would at it's slowest writing speed on a perfectly setup disk be able to write data at 6 megabytes per second or faster. Read speed isn't taken into account for the rating, but is generally faster than write speed.
I redid my test with raw write via if=/dev/zero and the write speed is now on-par with what was classified on the SD class. (7.4MBps write on my class 6). Playing around w/ the setting more, seems like the over-time degradation seems to be caused by my swappiness configuration.
Hi there. I got an Epic 4G not too long ago, and I've been attempting to root and install Clockwork to get some custom ROMs on it.
Installed Samsung drivers, phone connects fine. I'm not mounting the SD card, and I've tried it in Charge Only and USB Mass Storage modes.
I ran the sticky'd root method (2.2.6) from the Development subforum under the Epic 4G. Here is my log from that:
Code:
C:\Users\___>CD C:\Users\___\Desktop\Root
C:\Users\___\Desktop\root>adb devices
List of devices attached
D70024857e4d device
C:\Users\___\Desktop\root>run.bat
exploit and busybox made by joeykrim and one click installer made by noobnl and
firon
Press any key to continue . . .
copy and run the exploit (may take 2 minutes)
128 KB/s (5392 bytes in 0.041s)
3 KB/s (88 bytes in 0.026s)
[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C
[*] checking NPROC limit ...
[+] RLIMIT_NPROC={3712, 3712}
[*] Searching for adb ...
[+] Found adb as PID 2208
[*] Spawning children. Dont type anything and wait for reset!
[*]
[*] If you like what we are doing you can send us PayPal money to
[*] so we can compensate time, effort and HW costs.
[*] If you are a company and feel like you profit from our work,
[*] we also accept donations > 1000 USD!
[*]
[*] adb connection will be reset. restart adb server on desktop and re-login.
make it RW and move files
30 KB/s (687 bytes in 0.022s)
246 KB/s (26264 bytes in 0.104s)
355 KB/s (196521 bytes in 0.540s)
327 KB/s (14428 bytes in 0.043s)
9 KB/s (201 bytes in 0.020s)
413 KB/s (511436 bytes in 1.207s)
8 KB/s (203 bytes in 0.024s)
24 KB/s (479 bytes in 0.019s)
set permission
install busybox
push any key to reboot the phone
Press any key to continue . . .
Alright, so it rebooted. I can see SuperUser, and I can run apps that require root work perfectly (that screenshot one, etc).
So, I go to install Clockwork from the SDX forum (crossposted [link to noobnl's post spliced]). I ran "run-try-first.bat"
Code:
C:\Users\___>CD C:\Users\Media\Desktop\clockwork
C:\Users\___\Desktop\clockwork>adb devices
List of devices attached
D70024857e4d device
C:\Users\___\Desktop\clockwork>adb shell
$ su
su
# exit
exit
$ exit
exit
C:\Users\___\Desktop\clockwork>run-try-first.bat
one click installer and Clockworkmod Recovery v2.5.1.0 made by noobnl, skeeters
lint, and koush
Press any key to continue . . .
remove stock recovery patcher
mount: Operation not permitted
rm failed for /system/etc/install-recovery.sh, Read-only file system
rm failed for /system/recovery-from-boot.p, Read-only file system
copy kernel and flasher
432 KB/s (313888 bytes in 0.708s)
462 KB/s (5820868 bytes in 12.299s)
flashing kernel
RedBend Update Agent 6,1,14,1
FOTA : Make Block Device Nodes
lcd_init(498): start!
lcd_init(507): fb0 open success
lcd_init(514): width = 480, height = 800
open device file: Permission denied
bmldevice_get_size: bmldevice_open failed!src: /sdcard/zImage
dst: /dev/block/bml8 partition size: 0x0
part_size: 0x0
reboot: Operation not permitted
wait 60 second
cleanup
done
Press any key to continue . . .
C:\Users\___\Desktop\clockwork>
So, that seems like it didn't really work. I rebooted and went to recovery with ADB on the computer, with the volume + camera + power method, and got the stock recovery each time.
I went back in and installed ROM Manager, and flashed the newest build for the Epic, didn't work, stock recovery with the E: verification failed error.
I returned to my PC to try "run-try-last.bat"
Code:
C:\Users\___\Desktop\clockwork>run-try-last.bat
one click installer and Clockworkmod Recovery v2.5.1.0 made by noobnl, skeetersl
int, and koush
Press any key to continue . . .
copy and run the exploit (may take 2 minutes)
146 KB/s (5392 bytes in 0.036s)
4 KB/s (88 bytes in 0.020s)
[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C
[*] checking NPROC limit ...
[+] RLIMIT_NPROC={3712, 3712}
[*] Searching for adb ...
[+] Found adb as PID 2209
[*] Spawning children. Dont type anything and wait for reset!
[*]
[*] If you like what we are doing you can send us PayPal money to
[*] so we can compensate time, effort and HW costs.
[*] If you are a company and feel like you profit from our work,
[*] we also accept donations > 1000 USD!
[*]
[*] adb connection will be reset. restart adb server on desktop and re-login.
remove stock recovery patcher
rm failed for /system/etc/install-recovery.sh, No such file or directory
rm failed for /system/recovery-from-boot.p, No such file or directory
copy kernel and flasher
459 KB/s (313888 bytes in 0.667s)
343 KB/s (5820868 bytes in 16.535s)
flashing kernel
RedBend Update Agent 6,1,14,1
FOTA : Make Block Device Nodes
lcd_init(498): start!
lcd_init(507): fb0 open success
lcd_init(514): width = 480, height = 800
page_msize: 4096, phy_unit_size: 262144
src: /sdcard/zImage
dst: /dev/block/bml8 partition size: 0x780000
part_size: 0x780000
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 262144 bytes
read 53700 bytes
read finished
wait 60 second
cleanup
done
Press any key to continue . . .
C:\Users\___\Desktop\clockwork>adb reboot recovery
Same thing, didn't work. I am currently guessing that the:
Code:
rm failed for /system/etc/install-recovery.sh, No such file or directory
rm failed for /system/recovery-from-boot.p, No such file or directory
is the problem, since I can't seem to remove these files? I don't know.
Help is appreciated! Thanks much!
EDIT
Code:
C:\Users\Media>CD C:\Users\Media\Desktop\Root
C:\Users\Media\Desktop\root>adb shell mount -t rfs -o remount,rw /dev/block/stl9
/system
mount: Operation not permitted
C:\Users\Media\Desktop\root>adb shell
$ su
su
# mount -t rfs -o remount,rw /dev/block/stl9 /system
mount -t rfs -o remount,rw /dev/block/stl9 /system
# rm /system/etc/install-recovery.sh
rm /system/etc/install-recovery.sh
rm failed for /system/etc/install-recovery.sh, No such file or directory
# rm /system/recovery/recovery-from-boot.p
rm /system/recovery/recovery-from-boot.p
rm failed for /system/recovery/recovery-from-boot.p, No such file or directory
#
These files actually don't exist or something
I am having this exact same problem. When I try to use clockwork it goes to the stock android recovery mode and I receive the signature error.
are you rooted first?
nevermind sorry
I can finally answer w/ a why (in addition to an answer) - I think!
Before running the run last script open up an adb shell and type
Code:
su
remount rw
exit
exit
now run the script
I think this happens because the joeykim root leaves the system readonly?
Two other options if the above doesn't work:
1)Start fresh (reflash) from Odin and then install clockwork BEFORE rooting
2)Open up an adb shell and type the commands in the runlast script manually
hope that helps
jimmyz said:
I can finally answer w/ a why (in addition to an answer) - I think!
Before running the run last script open up an adb shell and type
Code:
su
remount rw
exit
exit
now run the script
I think this happens because the joeykim root leaves the system readonly?
Two other options if the above doesn't work:
1)Start fresh (reflash) from Odin and then install clockwork BEFORE rooting
2)Open up an adb shell and type the commands in the runlast script manually
hope that helps
Click to expand...
Click to collapse
I tried to do this and here is what I got. I may have messed up since I am new to this.
c:\samsung>adb shell
$ su
su
remount rw
remount rw
Permission denied
$ Remounting /system </dev/st19> in read/write mode
mount: Operation not permitted
$
Does anyone think it could be caused by the system update that has been rolling out? I downloaded that before I rooted.
I am having the same problem while trying to get Clockwork to work correctly on my Epic.
I also think that the problem is related to the install-recovery.sh and recovery-from-boot.p files. If I run a batch file (run.bat or run-try-first.bat or run-try-last.bat) the first problem is always when it tries to remove these files.
First I tried to just remove the install-recover.sh file
>adb shell rm /system/etc/install-recovery.sh
rm failed for /system/etc/install-recovery.sh, Read-only file system
The system reported that the file system was read-only.
Next I changed the file system to be writable.
>adb shell
$ su
su
# remount rw
remount rw
Remounting /system (/dev/stl9) in read/write mode
# exit
exit
$ exit
exit
This seemed to work ok and no errors were reported
Last I tried to delete the file again.
>adb shell rm /system/etc/install-recovery.sh
rm failed for /system/etc/install-recovery.sh, No such file or directory
This time the system reported that the file (or directory) was not found.
All of the updates have been applied to this phone.
I'm just getting into the Android world so I'm pretty lost right now. I am able to get into the clockwork recovery if I hold the volume-down, camera button and the power button down until the phone is fully turned on. I am not able to update the phone's rom and this problem seems to be tied back to that the phone is not "really" rooted (this is pretty much just a guess...)
Thank you in advance for any help or suggestions you may offer!
Scott
Hi there.
I've redone the entire phone a few times now with Odin. Each time I try a new method of root/flashing clockwork. I've tried in every combination:
-Using Noobl's stuff, including 2.2.7, 2.2.6, and I guess 2.2.5 or whatever he published before that
-Using Koush's clockwork and noobl's clockwork things, both -first and -last
-Pulling the battery during the clockwork reboot and using the camera + volume + power
-Using ADB rebooting and quick rebooting
-Remounting the system RW between root and clockwork, before both, etc
Nothing has worked, tried with no updates applied and with all 3, and with the first one. I guess this android stuff just isn't my cup of tea after all. Time to wait for WP7, I suppose (can't stand this 5 hour battery crap, was hoping to fix it). Tried it on 3 computers, done it every conceivable way.
Thanks to the modding community, rooting community, and everybody who writes the guides. I guess I'm just unlucky or something.
EDIT: Disregard that, randomly worked after pulling the battery during the reboot following Noobl's clockwork install...... well then
If you want to try one last time I would try to manually root etc by entering one line at a time via adb
Sent from my SPH-D700 using XDA App
Installed The Boss Mod V.3
JuiceDefender, Superuser, ROM Manager
I can still only reach Clockwork via the Power + Volume + Camera, not through adb reboot or the clockwork menu...
juchmis said:
Installed The Boss Mod V.3
JuiceDefender, Superuser, ROM Manager
I can still only reach Clockwork via the Power + Volume + Camera, not through adb reboot or the clockwork menu...
Click to expand...
Click to collapse
This is expected behavior if you just used noobnl one click- it installs to bml8. IF you want to reach clockwork through Rom Manager you need to have a modified kernel (on bml7) which many of the custom Roms have built in. After you you do that adb reboot will work but only if you keep the appropriate clockworkwod mod update.zip in the root of your sdcard and select it through the "stock" recovery- this is "fakeflash"
Hello everybody. After many attempts to build a ROM I decided to share my knowledge with you
I'm going to show you how to build CM7 for X8 using official CM sources.
As the result you will have:
CyanogenMod in version 2.3.7 for X8 aka Shakira. You need to have unlocked bootloader and flash FXP kernel to use this ROM.
WARNING: This may brick your device. You have been warned!
What are the requirements?
0. A smart head, and being willing to learn something new.
1. A PC featuring a dual-core CPU (the more, the merrier) and at least 1.5GB RAM. Having a CPU that supports 64-Bit Mode (Intel EM64T / AMD64) and Paravirtualization (Intel VT-x / AMD-V) is required if you are planning to run a 64-Bit distribution.
2. A Linux based system such as Ubuntu or Linux Mint. My guide should work on any other Ubuntu based distribution as well, though you need to adapt commands in case you're running a RPM based Red Hat/Fedora/openSUSE distribution. To make things easier if your main OS is Windows you better consider using Linux in a Virtual Machine (VirtualBox recommended).
3. Speedy internet connection so the download of the CyangogenMod sources don't take forever.
4. About 50GB of FREE disk space.
5. Ability to access to Internet in Linux / your Virtual Machine so you can access Google and XDA to search for help, because everything that can go wrong will go wrong ;P
Shall we dance?
1. Download and install Linux. Linux is perfectly legal free opensource software; you won't go to jail for downloading it. I prefer Ubuntu 10.10 or Linux Mint 10 (which I'm using). The best choice is to use the respective 64-Bit edition. You may find links in next post.
2. There is a tool called "Terminal" - it's your new best friend. Create a shortcut in desktop.
How Linux look like
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just like Windows, but better
Paste this into terminal:
For Ubuntu below 11.04 use this:
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev gcc-4.3-multilib g++-4.3-multilib
NOTE: As for Ubuntu 11.04+ (also applies to Linux Mint 11+) see what Novek posted in the CMCompiler thread.
lib32readline5-dev has been replaced by lib32readline-gplv2-dev on 11.10
And "gcc-4.3-multilib g++-4.3-multilib" aren't used from 11.04 and up - not needed, so use this code:
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jdk pngcrush schedtool g++-multilib lib32z1-dev lib32ncurses5-dev
You may want to add that piece of intel.
This will install required packages. If you'll receive errors try to delete packages from above code.
After this you'll need to create folders for CM repo.
Type:
Code:
mkdir -p ~/bin
mkdir -p ~/android/system
PATH=~/bin:$PATH
You could name second folder as you want.
Next step: Repo installation
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
chmod is a very important command. It's allows you to give permissions for specific files/folders.
Next step: Downloading the beast
Remember to type correct folder name!
Code:
cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j10
-j attribute is responsible for number of processes taken in single action. If you have powerful PC you could use -j16 or even -j32. Bigger number - quicker extraction of files.
Get the ROM Manager just in case
Code:
~/android/system/vendor/cyanogen/get-rommanager
Next step: Download Android-SDK to make ADB work
Extract this to home directory, then
Code:
cd ~/android-sdk-linux/tools
./android
Just do what is shown in this movies:
Download all files and get ready.
Next step: Copy proprietary files (you need to have phone connected in debugging mode) - For proprietary files use stock ROM or official CM 7.1.
Type in terminal:
Code:
cd ~/android/system/device/semc/shakira/
./extract-files.sh
If you have problems copy adb file to this directory and edit extract-files.sh to have something like this:
./adb pull instead of adb pull
If you have troubles do this:
After installation open terminal and type:
Code:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Put correct path to your adb.
Type
Code:
./adb devices
if you'll receive such line
Code:
"List of devices attached
???????????? no permissions"
do specific thing.
Code:
sudo touch /etc/udev/rules.d/51-android.rules && sudo sh -c "echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYSFS{idProduct}=="612e", MODE="0666"' >> /etc/udev/rules.d/51-android.rules" && sudo chmod 644 /etc/udev/rules.d/51-android.rules
If something goes wrong type
Code:
lsusb
to see which devices are connected and change code.
Then
Code:
sudo restart udev
sudo ./adb kill-server
sudo ./adb start-server
And it's ready to action.
Next step: Setting build environment
Type in terminal:
Code:
cd ~/android/system/
. build/envsetup.sh && breakfast shakira
You'll see the list of CM devices
Shakira is number 136 (right now is #144) - It won't work due to changes in CM device tree.
So use:
Code:
lunch cyanogen_shakira-eng
or
breakfast shakira
Next: Step - build!
All you need to do right now is type magic command "make"
Add -j4 to make it much quicker
To obtain update.zip file type
Code:
make -j4 bacon
Now wait patiently and fight errors
I'm glad if I helped somebody to build his/her first ROM.
If I made any mistakes feel free to correct me.
Thanks to B.Jay for help.
I spent some time to write this, so hit thanks button
You can also donate me. All donations are highly appreciated :beer:
Okay, since eagleeyetom decided to make his research about how to build CM7 public, here are a few thoughts of my own to accompany his guide...
If you're a Windows user and don't want to go through the hassle of dual-booting Linux with Windows XP/Vista/7 it's highly recommended that you install VirtualBox as your virtualization software (also download and install the Extensions Pack if you want to connect to your phone through USB right out of the VM!). Stay clear from VMware Player or VMware Workstation. Things like 3D acceleration will not work with VMware! A important aspect if you're opting to install a Gnome3/GTK3 based distribution release, or you simply want the eye-candy to make work more fun.
This means ... the specs of your system should be above "average". Since the Virtual Machine, into which you're going to install Linux, will need some RAM for its own don't even think about this approach if your system is at, or well below, 3GB RAM. Especially with Windows Vista or Windows 7 being your OS upon which VirtualBox will run you will find yourself in the situation very quickly that Windows sucks up a good Gigabyte of RAM just for itself - and keep in mind that VirtualBox will need a wee bit more than just the 1.5GB RAM (or whatever you're going to assign) + 8MB VRAM to run.
Of course you also need some spare space on your hard drive(s) as you need to create a Virtual Hard Drive for the Virtual Machine. 80GB should be considered the minimum here as you're going to need quite some space for the source, the temp files that get created during the compile, and the finalized ROM.
I'd recommend you partition your virtual hard drive this way...
~1GB ext4 as /boot
2* the amount of RAM you assigned to your VM as swap (3GB swap if your VM runs on 1.5GB RAM)
The rest ext4 as /
Stay away from btrfs as it will give terrible performance in a VM.
A better partitioning would be to keep / and /home separated in case you plan to upgrade the Linux installation in your VM...
~1GB ext4 as /boot
2* the amount of RAM you assigned to your VM as swap (3GB swap if your VM runs on 1.5GB RAM)
~10-15GB ext4 as /
The rest ext4 as /home
That way you won't lose your stuff in /home in case things go wrong at an dist-upgrade.
Once you got Linux Installed install the Guest Additions ... it'll make working with your Virtual Machine and switching back and forth between the host OS and your VM way easier. In case the build of the kernel modules bombs out with a error message open a terminal and issue "sudo apt-get install build-essentials" ... that should solve the problem.
While you should get by with 1.5GB RAM to build CM7 (aka "Gingerbread") Google specifies the use of a 64-Bit Linux Distribution and at least 8GB RAM to tinker around with Ice Cream Sandwich. If you want to play around with the CM9 sources once they become available to the masses you better keep the aforementioned system requirements in mind.
If you happen to have questions about setting up VirtualBox feel free to post.
Value added Links:
Linux Mint 10 (as used by eagleeyetom)
Download here
Linux Mint 12 (latest version at the time of writing)
Download here
Ubuntu Linux 10.04 LTS or 11.10
Download here
Great man
Tfs..!!
Sent from my Micromax A60 using xda premium
Thanks fir the guide. I bow have Linux on my own laptop
will definitely try to build my own rom,
thank you.
One Question , this rom will be for stock kernel am i right ?
This ROM will be for FXP kernel.
Sent from my X8 using xda premium
and last question , what android it will be , i mean version ? 2.3.5 or 2.3.7 ?
If it will be something like that im going to made my rom ;D
It's 2.3.7. The same as the latest nightly for Shakira. Good luck
Sent from my X8 using xda premium
Let us know of results of building your ROMs. If you have any questions or can't solve errors, post it here - maybe we will be able to handle them
Thanks for the nice tutorial. Will try it.
I think I need to update my laptop as well because I will like to try it for the ICS also.
Any ways thank you very much for the tutorial.
adb is givin me error and i do the second step "./adb pull instead of adb pull" it givis device not found....
what do i do?
After installation open termina and type:
Code:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Put correct path to your adb.
Type ./adb devices if you'll receive such line "List of devices attached
???????????? no permissions" do specific thing.
Code:
sudo touch /etc/udev/rules.d/51-android.rules && sudo sh -c "echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYSFS{idProduct}=="612e", MODE="0666"' >> /etc/udev/rules.d/51-android.rules" && sudo chmod 644 /etc/udev/rules.d/51-android.rules
If something goes wrong type lsusb to see which devices are connected and change code.
Then
Code:
sudo restart udev
sudo ./adb kill-server
sudo ./adb start-server
And it's ready to action.
Allow me to add the following piece of intel about the "51-android.rules" file in /etc/udev/rules.d/
For Ubuntu 10.04 LTS / Ubuntu 10.10 / Linux Mint 9 / Linux Mint 10
The better format of the file would be...
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYSFS{idProduct}=="612e", SYMLINK+="android_adb", MODE="0666", GROUP="plugdev"
Starting with Ubuntu Linux 11.04 / Linux Mint 11 the format of the file has changed and needs to be written as...
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce:612e", SYMLINK+="android_adb", MODE="0666", GROUP="plugdev", TEST=="/var/run/ConsoleKit/database", RUN+="udev-acl --action=$env{action} --device=$env{DEVNAME}"
Just in case anyone following the guide doesn't run Lucid/Isadora or Maverick/Julia.
eagleeyetom said:
After installation open termina and type:
Code:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
Put correct path to your adb.
i did this and then i type ./adb devices
an shows bash: ./adb: No such file or directory
the path is the one
Click to expand...
Click to collapse
Leave out the ./ in front of adb
One you exported the path to where adb is located it will be found automatically.
./adb means that "adb" is located in the current directory you're in (./)
Also make sure that adb itself is executable!
---------- Post added at 03:02 PM ---------- Previous post was at 02:55 PM ----------
Also, to make the path thing permanent ...
- Open a terminal
- touch ~/.bashrc (in case the file doesn't exist)
- gedit ~/.bashrc
Insert ...
Code:
export PATH=${PATH}:~/android-sdk-linux/tools
export PATH=${PATH}:~/android-sdk-linux/platform-tools
- Save the file.
Now, every time you log in the path with automatically be added to the path search tree.
its done
[email protected] ~/android/system/device/semc/shakira $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0bda:8197 Realtek Semiconductor Corp. RTL8187B Wireless Adapter
Bus 002 Device 002: ID 0fce:2149 Sony Ericsson Mobile Communications AB Xperia X8 (debug)
[email protected] ~/android/system/device/semc/shakira $ ./extract-files.sh
19 KB/s (822 bytes in 0.040s)
6 KB/s (281 bytes in 0.040s)
21 KB/s (896 bytes in 0.040s)
21 KB/s (896 bytes in 0.040s)
358 KB/s (31712 bytes in 0.086s)
remote object '/system/bin/port-bridge' does not exist
468 KB/s (23516 bytes in 0.049s)
109 KB/s (9260 bytes in 0.082s)
1550 KB/s (185892 bytes in 0.117s)
213 KB/s (17904 bytes in 0.081s)
158 KB/s (13336 bytes in 0.082s)
322 KB/s (29872 bytes in 0.090s)
749 KB/s (93940 bytes in 0.122s)
517 KB/s (54364 bytes in 0.102s)
480 KB/s (50364 bytes in 0.102s)
590 KB/s (66844 bytes in 0.110s)
892 KB/s (62692 bytes in 0.068s)
116 KB/s (9300 bytes in 0.078s)
797 KB/s (93004 bytes in 0.113s)
278 KB/s (25784 bytes in 0.090s)
716 KB/s (86708 bytes in 0.118s)
62 KB/s (5008 bytes in 0.078s)
remote object '/system/lib/libuim.so' does not exist
1784 KB/s (808160 bytes in 0.442s)
698 KB/s (78940 bytes in 0.110s)
391 KB/s (37856 bytes in 0.094s)
1561 KB/s (483024 bytes in 0.302s)
1064 KB/s (163608 bytes in 0.150s)
1910 KB/s (576104 bytes in 0.294s)
112 KB/s (9412 bytes in 0.081s)
573 KB/s (71700 bytes in 0.122s)
209 KB/s (17636 bytes in 0.082s)
1064 KB/s (171904 bytes in 0.157s)
400 KB/s (38372 bytes in 0.093s)
212 KB/s (17836 bytes in 0.081s)
400 KB/s (38396 bytes in 0.093s)
398 KB/s (38452 bytes in 0.094s)
1116 KB/s (190020 bytes in 0.166s)
448 KB/s (46856 bytes in 0.102s)
399 KB/s (38372 bytes in 0.093s)
1033 KB/s (183460 bytes in 0.173s)
673 KB/s (42492 bytes in 0.061s)
235 KB/s (22160 bytes in 0.091s)
327 KB/s (30144 bytes in 0.089s)
327 KB/s (30144 bytes in 0.089s)
1627 KB/s (590324 bytes in 0.354s)
27 KB/s (1156 bytes in 0.041s)
109 KB/s (9220 bytes in 0.082s)
19 KB/s (820 bytes in 0.040s)
17 KB/s (745 bytes in 0.040s)
15 KB/s (635 bytes in 0.040s)
31 KB/s (1297 bytes in 0.040s)
184 KB/s (15513 bytes in 0.081s)
412 KB/s (21613 bytes in 0.051s)
1033 KB/s (84571 bytes in 0.079s)
114 KB/s (9640 bytes in 0.082s)
158 KB/s (13340 bytes in 0.082s)
1314 KB/s (271892 bytes in 0.201s)
remote object '/system/etc/wifi/softap/tiwlan_ap.ini' does not exist
remote object '/system/etc/wifi/softap/tiwlan_firmware_ap.bin' does not exist
371 KB/s (34308 bytes in 0.090s)
1086 KB/s (162880 bytes in 0.146s)
1183 KB/s (210640 bytes in 0.173s)
694 KB/s (75656 bytes in 0.106s)
2024 KB/s (1746564 bytes in 0.842s)
393 KB/s (33514 bytes in 0.083s)
174 KB/s (287 bytes in 0.001s)
982 KB/s (95456 bytes in 0.094s)
91 KB/s (3823 bytes in 0.040s)
170 KB/s (13836 bytes in 0.079s)
119 KB/s (9640 bytes in 0.078s)
114 KB/s (9292 bytes in 0.079s)
69 KB/s (5576 bytes in 0.077s)
290 KB/s (26852 bytes in 0.090s)
210 KB/s (17780 bytes in 0.082s)
65 KB/s (5252 bytes in 0.078s)
114 KB/s (9172 bytes in 0.078s)
remote object '/system/app/AntHalService.apk' does not exist
4 KB/s (189 bytes in 0.040s)
20 KB/s (842 bytes in 0.040s)
remote object '/system/lib/libanthal.so' does not exist
[email protected] ~/android/system/device/semc/shakira $ . build/envsetup.sh && lunch
bash: build/envsetup.sh: No such file or directory
[email protected] ~/android/system/device/semc/shakira $ ./extract-files.sh19 KB/s (822 bytes in 0.040s)
6 KB/s (281 bytes in 0.040s)
21 KB/s (896 bytes in 0.040s)
21 KB/s (896 bytes in 0.040s)
358 KB/s (31712 bytes in 0.086s)
remote object '/system/bin/port-bridge' does not exist
468 KB/s (23516 bytes in 0.049s)
115 KB/s (9260 bytes in 0.078s)
1665 KB/s (185892 bytes in 0.109s)
223 KB/s (17904 bytes in 0.078s)
166 KB/s (13336 bytes in 0.078s)
337 KB/s (29872 bytes in 0.086s)
830 KB/s (93940 bytes in 0.110s)
563 KB/s (54364 bytes in 0.094s)
479 KB/s (50364 bytes in 0.102s)
636 KB/s (66844 bytes in 0.102s)
957 KB/s (62692 bytes in 0.063s)
115 KB/s (9300 bytes in 0.078s)
823 KB/s (93004 bytes in 0.110s)
291 KB/s (25784 bytes in 0.086s)
769 KB/s (86708 bytes in 0.110s)
62 KB/s (5008 bytes in 0.078s)
remote object '/system/lib/libuim.so' does not exist
2042 KB/s (808160 bytes in 0.386s)
752 KB/s (78940 bytes in 0.102s)
427 KB/s (37856 bytes in 0.086s)
1854 KB/s (483024 bytes in 0.254s)
1188 KB/s (163608 bytes in 0.134s)
2126 KB/s (576104 bytes in 0.264s)
117 KB/s (9412 bytes in 0.078s)
682 KB/s (71700 bytes in 0.102s)
208 KB/s (17636 bytes in 0.082s)
1178 KB/s (171904 bytes in 0.142s)
434 KB/s (38372 bytes in 0.086s)
222 KB/s (17836 bytes in 0.078s)
433 KB/s (38396 bytes in 0.086s)
434 KB/s (38452 bytes in 0.086s)
1267 KB/s (190020 bytes in 0.146s)
485 KB/s (46856 bytes in 0.094s)
433 KB/s (38372 bytes in 0.086s)
1293 KB/s (183460 bytes in 0.138s)
740 KB/s (42492 bytes in 0.056s)
447 KB/s (22160 bytes in 0.048s)
340 KB/s (30144 bytes in 0.086s)
340 KB/s (30144 bytes in 0.086s)
1983 KB/s (590324 bytes in 0.290s)
27 KB/s (1156 bytes in 0.040s)
114 KB/s (9220 bytes in 0.078s)
19 KB/s (820 bytes in 0.040s)
17 KB/s (745 bytes in 0.040s)
15 KB/s (635 bytes in 0.040s)
31 KB/s (1297 bytes in 0.040s)
193 KB/s (15513 bytes in 0.078s)
435 KB/s (21613 bytes in 0.048s)
1140 KB/s (84571 bytes in 0.072s)
120 KB/s (9640 bytes in 0.078s)
166 KB/s (13340 bytes in 0.078s)
1490 KB/s (271892 bytes in 0.178s)
remote object '/system/etc/wifi/softap/tiwlan_ap.ini' does not exist
remote object '/system/etc/wifi/softap/tiwlan_firmware_ap.bin' does not exist
388 KB/s (34308 bytes in 0.086s)
1183 KB/s (162880 bytes in 0.134s)
1334 KB/s (210640 bytes in 0.154s)
721 KB/s (75656 bytes in 0.102s)
2401 KB/s (1746564 bytes in 0.710s)
393 KB/s (33514 bytes in 0.083s)
6 KB/s (287 bytes in 0.040s)
844 KB/s (95456 bytes in 0.110s)
91 KB/s (3823 bytes in 0.040s)
172 KB/s (13836 bytes in 0.078s)
120 KB/s (9640 bytes in 0.078s)
115 KB/s (9292 bytes in 0.078s)
69 KB/s (5576 bytes in 0.078s)
303 KB/s (26852 bytes in 0.086s)
221 KB/s (17780 bytes in 0.078s)
65 KB/s (5252 bytes in 0.078s)
114 KB/s (9172 bytes in 0.077s)
remote object '/system/app/AntHalService.apk' does not exist
4 KB/s (189 bytes in 0.040s)
19 KB/s (842 bytes in 0.041s)
remote object '/system/lib/libanthal.so' does not exist
[email protected] ~/android/system/device/semc/shakira $ .build/envsetup.sh && lunch
bash: .build/envsetup.sh: No such file or directory
then it shows this... what to do???
brunodmsa said:
[email protected] ~/android/system/device/semc/shakira $ .build/envsetup.sh && lunch
bash: .build/envsetup.sh: No such file or directory
then it shows this... what to do???
Click to expand...
Click to collapse
I think you typoed, if that's a direct copy/paste.
There should be a space between the dot and build.
. build/envsetup.sh && lunch
NOT
.build/envsetup.sh && lunch
B.Jay said:
I think you typoed, if that's a direct copy/paste.
There should be a space between the dot and build.
. build/envsetup.sh && lunch
NOT
.build/envsetup.sh && lunch
Click to expand...
Click to collapse
it as a space and shows the same thing...
one q? why do i have to conect my x8 to pc?
Nice share
Nice share...thanks button pressed..Can im using Backbox linux boot from usb..
Hi!
I need help with root Acre Iconia tab a500... I use this guide for root on linux (ubuntu 12.10).
I follow all instructions. All is fine but I stucked on last step.
Here is my error (bold font) in terminal:
Thanks for help!
Code:
[email protected]:~/root$ chmod +x ./root.sh
[email protected]:~/root$ ./root.sh -d
ICS Root Linux V1.1 (Functionally Equivalent to Windows version 5.1)
Welcome to blackthund3r's Linux A500 Root Tool for the leaked releases of Ice Cream Sandwich 4.0.3
Supported leak ve rsions:
*0.019.00
*0.022.00
*1.031.00
~~~~~~~~~
WARNING: I TAKE NO RESPONSIBILITY FOR YOU OR YOUR EQUIPMENT WHILST USING THIS TOOL!
DEBUG MODE
FOR TESTING ADB CONNECTION. DOES NOT MODIFY THE TABLET
Press any key to continue...
[+] Killing any adb processes
[+] Starting adb server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[+] Listing devices
List of devices attached
14902506315 device
Is your device listed? (y/n) y
[+] Your ADB connection is fine. Proceed to root your device!
[email protected]:~/root$ ./root.sh -h
ICS Root Linux V1.1 (Functionally Equivalent to Windows version 5.1)
Welcome to blackthund3r's Linux A500 Root Tool for the leaked releases of Ice Cream Sandwich 4.0.3
Supported leak ve rsions:
*0.019.00
*0.022.00
*1.031.00
~~~~~~~~~
WARNING: I TAKE NO RESPONSIBILITY FOR YOU OR YOUR EQUIPMENT WHILST USING THIS TOOL!
USAGE:
-h | --help: Shows this usage message
-r | --root: root the device (Installs busybox, su, Superuser.apk & remount app)
-t | --trebuchet: Install Trebuchet (CM9 launcher)
-f | --facelock: Install FaceLock (Experimental and only partially working at the moment
-a | --RemoveAcerNidus: Remove AcerNidus Crash Report App
-s | --RemoveStockRecoveryReflash: Remove auto-reflash of stock recovery in preparation to flash CWM in APX mode
-u1 | --AcerRing1: Install Acer Ring on 0.019.00
-u2 | --AcerRing2: Install Acer Ring on 0.022.00
-u3 | --AcerRing3: Install Acer Ring on 1.031.00
-b | --bash: Install bash on the tablet
-c | --complete: Does the whole lot!
-d | --debug: Debug mode. Tests the ADB connection
[email protected]:~/root$ ./root.sh -r
ICS Root Linux V1.1 (Functionally Equivalent to Windows version 5.1)
Welcome to blackthund3r's Linux A500 Root Tool for the leaked releases of Ice Cream Sandwich 4.0.3
Supported leak ve rsions:
*0.019.00
*0.022.00
*1.031.00
~~~~~~~~~
WARNING: I TAKE NO RESPONSIBILITY FOR YOU OR YOUR EQUIPMENT WHILST USING THIS TOOL!
Press any key to run!
Running in 5 seconds
5
4
Ready...
Set...
Go!
Running!!
[+] Killing all old adb processes
[+] Starting ADB Server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
[+] Listing Devices
List of devices attached
14902506315 device
Is your device listed? (y/n) y
[+] Uploading exploit
1088 KB/s (37273 bytes in 0.033s)
[+] Uploading busybox
1293 KB/s (821340 bytes in 0.620s)
[+] Setting permissions
[+] Creating directories
[+] Uploading files...
[B]./root.sh: řádek 161: [: ==: očekáván unární operátor
547 KB/s (22364 bytes in 0.039s)
1126 KB/s (843503 bytes in 0.731s)
0 KB/s (40 bytes in 0.040s)
537 KB/s (21584 bytes in 0.039s)
12 KB/s (519 bytes in 0.040s)
./root.sh: řádek 282: chyba syntaxe: nenadálý konec souboru[/B]
[email protected]:~/root$
Hey guys,
I'm trying to use ADB Konnect (connect your tablet via adb over wifi) on my Tegra Note. But unfortunatelly when I try to connect on my computer it says: Unable to connect to XXX
It's working on al the other Android devices I've test. Did you heard about this issue on Tegra Note?
Anyone manage to connect to his tegra note via adb connect?
Thanks!
It should work - and it does.
18 months later it seemed my turn to face this very same issue. My nVidia Tegra Note 7 (Android 5.1) failed to "adb connect" on WiFi from my Windows computer (Windows 10.0.10586 Pro x64) – which in the first place connected successfully *on USB* :
Code:
[B]adb devices[/B] }}::: (on USB)
List of devices attached
0521014101305001AA33 device
Windows could also ping the device :::
Code:
[B]ping [/B]192.168.1.211
[SIZE="1"]
[/SIZE]Pinging 192.168.1.211 with 32 bytes of data:
Reply from 192.168.1.211: bytes=32 time=105ms TTL=64
Reply from 192.168.1.211: bytes=32 time=5ms TTL=64
Reply from 192.168.1.211: bytes=32 time=4ms TTL=64
Reply from 192.168.1.211: bytes=32 time=3ms TTL=64
[SIZE="2"]
[/SIZE]Ping statistics for 192.168.1.211:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 3ms, Maximum = 105ms, Average = 29ms
Fortunately as I went through the following scenario, it ultimately led to successful connection on WiFi :::
Code:
>[B]adb connect 192.168.1.211[/B]
unable to connect to 192.168.1.211:5555
>[B]adb devices[/B]
List of devices attached
0521014101305001AA33 device « « « USB.
>[B]adb tcpip 5555[/B]
restarting in TCP mode port: 5555
>[B]adb devices[/B]
List of devices attached
0521014101305001AA33 device « « « Still on USB.
>[B]adb devices[/B]
List of devices attached
« « « « « USB disconnected.
>[B]adb connect 192.168.1.211[/B]
connected to 192.168.1.211:5555
>[B]adb devices[/B]
List of devices attached
192.168.1.211:5555 device
>[B]adb shell[/B]
[email protected]:/ $ [B]ls[/B]
acct
cache
charger
config
< etc. >
Just use a data cable..