How to Boot android bbbandroid from internal mmc? - android

I want to boot android pre-built bbbandroid.img.xz from internal mmc its always fail to boot whereas same procedure for SD Card it boot successfully.
To flash this image into internal mmc, I boot from SD Card and find internal memory at /dev/mmcblk1. Following command I used to flash image
sudo xz -cd bbbandroid.img.xz > /dev/mmcblk1
It shows partitions correctly. But always on console only slowly CCCCC printing and stopped.
Same procedure I am following to flash image into SD Card using UBuntu host machine and sd card reader and use similar command from ubuntu host machine
sudo xz -cd bbbandroid.img.xz > /dev/sdc
For Sd card, everything ok and booting successfully
I compared partitions of SD Card and internal mmc looks exactly same.
What might be problem any have idea?

Related

"mount: Invalid argument" on Android

I'm trying to mount an ext4 partition located on my SD card with the following:
# mount -t ext4 /dev/block/mmcblk1p2 /data/sdext2
But it always returns "Invalid argument". I've verified that ext4 is supported through /proc/filesystems.
Ideas on how to troubleshoot?
Turns out the SD card I bought from eBay was fake. It was packaged and branded as a 32gb card but the real capacity was 16gb. That's why it failed every time I tried to do 16gb FAT32 and 16gb EXT4. There wasn't any room for the second partition.
If I do 8gb each, it starts working again. Also works if I use a different card.

Android: How to create an AVD with an external sd card?

I'd like to create an Android Virtual Device against which I can test recent issues with writing to external SD cards. I would expect the external sd card to be found at location like "/storage/extSdCard/DCIM/" on the AVD's file system. Any suggestions on how I can accomplish this?
To add removable storage to your AVD use:
~/Android/android-sdk/tools/mksdcard [memory size] [output file]
to create SD card image.
Then pass it in Advanced AVD Settings dialog: SD card -> External file
DONE :)
You can learn more about the mksdcard tool here:
https://developer.android.com/studio/command-line/mksdcard
You can open Android Device Monitor which is the Android symbol next to the SDK Manager. Once opened you can see the files using the file explorer and here you can create the required folders/path for using the external SD card.
There is a chance that when you try and create a folder it will say it is read only, if this happens open up command prompt and using adb shell input these commands:
mount -o rw,remount rootfs /
chmod 777 /mnt/sdcard
exit
These commands are from this link
On macOS Mojave 1.14.3 with Android Studio 3.3.1 I found the path to be slightly different.
Create a 128 Gb sdcard:
~/Library/Android/sdk/tools/mksdcard 128G sdcard.ini

android jellybean prebuilt binaires on panda board not booting up

I am trying to bring up panda-board omap4430 with Android jellybean pre-built binaries, which I have downloaded from linaro.org (http://releases.linaro.org/12.12/android/panda/).
I am creating two partitions on SD card into file systems.
First is bootable FAT32 containing boot.tar.bz2 and u-boot.img and other ext3 partition is having userdata.tar.bz2 and system.tar.bz2.
After putting my SD card in panda board & connecting it through minicom on my Ubuntu pc, I am not able to see even a single charecter of untaring or something or any logs.
Am I missing something.
I have done Ubuntu porting on Beagle board earlier successfully.
you are flashing it first time on panda board then it has some other method, as they have given like below process
format sd card
copy MLO and u-boot.bin in fat 32 partitions
then follow the given process on OMAPpedia release nots.

Android external usb camera

I rooted android galaxy nexus. I don't see any video devices under dev folder checked through adb shell.
I am trying to use External USB camera http://brain.cc.kogakuin.ac.jp/research/usb-e.html.
Modified Kernel settings and build custom zImage , After unpacking boot.img and replacing zImage then repacked to new-boot.img. I flashed with new boot.img. Once i run sample camera app from above mentioned url cannot see any video frames. I think it could because there is no video device under /dev normally device should have /dev/video0,1 so on.
Any body can help or show some direction ?

Issue with linux "adb push" command, "No such file or directory" error

I am trying to develop a simple pygame with Ubuntu Linux 11.10 for my Motorola android phone. I am having trouble getting the "adb push" command to work. I get an failed to copy 'foo.txt' to '/media/MOT': No such file or directory error message. What am I doing wrong?
Here is what I tried so far:
The phone's SD card is mounted at /media/MOT/ and I am able to ls, create a folder and delete a folder in it.
user#linuxlappy:~$
user#linuxlappy:~$ cd /media/MOT/
user#linuxlappy:/media/MOT$ ls
Android burstlyImageCache burstlyVideoCache data DCIM download gstomperdemo LOST.DIR slacker temp.apk
user#linuxlappy:/media/MOT$ mkdir writetest
user#linuxlappy:/media/MOT$ rmdir writetest/
The file that I am trying to copy is foo.txt in my /home/user/ directory
user#linuxlappy:/media/MOT$ cd /home/user/
user#linuxlappy:~$ ls foo.*
foo.txt foo.txt~
I enabled USB debugging on the phone with:
Settings > Applications > Development > USB debugging.
I believe I have adb installed correctly, I am able to list the phone with adb devices.
user#linuxlappy:~$ adb devices
List of devices attached
0910E8201700B017 device
When I try to push a simple text file to the SD card I get this error message.
user#linuxlappy:~$ adb push foo.txt /media/MOT
failed to copy 'foo.txt' to '/media/MOT': No such file or directory
user#linuxlappy:~$
The phone's SD card is mounted at /media/MOT/
Based on your terminal output, it is mounted on your desktop Linux environment as /media/MOT. In which case, to copy files to it, you use cp.
Using adb push, you need to use the path where the external storage resides on the phone. A common spot is /mnt/sdcard/, though it may vary. Also, bear in mind that, depending on your phone, external storage may not be available while you have it mounted as a volume on your desktop Linux environment.

Categories

Resources