RobertCNelson / linux-dev

MIT License
151 stars 96 forks source link

./tools/install_kernel.sh --not working #26

Closed ghost closed 10 years ago

ghost commented 10 years ago

I see... fdisk -l: Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes Disk /dev/mmcblk1: 1920 MB, 1920991232 bytes Disk /dev/mmcblk1boot1: 1 MB, 1048576 bytes Disk /dev/mmcblk1boot0: 1 MB, 1048576 bytes Disk /dev/sda: 1948 MB, 1948254208 bytes

lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 1.8G 0 disk └─sda1 8:1 1 1.8G 0 part mmcblk1boot0 179:16 0 1M 1 disk mmcblk1boot1 179:24 0 1M 1 disk mmcblk0 179:0 0 7.4G 0 disk ├─mmcblk0p1 179:1 0 96M 0 part /boot/uboot └─mmcblk0p2 179:2 0 7.3G 0 part / mmcblk1 179:8 0 1.8G 0 disk ├─mmcblk1p1 179:9 0 70.6M 0 part └─mmcblk1p2 179:10 0 1.7G 0 part

Are you 100% sure, on selecting /dev/sda? y

Debug: Existing Partition on drive:

Disk /dev/sda: 1948 MB, 1948254208 bytes 48 heads, 47 sectors/track, 1686 cylinders, total 3805184 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Device Boot Start End Blocks Id System /dev/sda1 141 3805183 1902521+ b W95 FAT32

Unmounting Partitions

Starting Partition Search

Trying: [/dev/sda1] Partition: [/dev/sda1] trying: [vfat], [ext4] Partition: [vfat] /home/debian/linux-dev-am33x-v3.13

This script has finished... For verification, always test this media with your end device...

debian@arm:~/linux-dev-am33x-v3.13$


but there is not anything on mmc..

RobertCNelson commented 10 years ago

Well, "/dev/sda" isn't properly setup, the install script is looking for atleast a small boot partition along with a big root partition.

It doesn't: Create the Partition Layout Format the Partitions Create a rootfs image

It does: copy zImage/uImage/dtbs to small boot partition copy modules/firmware to big rootfs partition

ghost commented 10 years ago

thanks for replying MR.RobertCNelson I make two partition , 1> 150 MB fat16-bootable 2>1.7 GB ext4 but not works.. kindly give some detail please..

ghost commented 10 years ago

par2 part1

RobertCNelson commented 10 years ago

http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-SetupmicroSD/SDcard

ghost commented 10 years ago

I follow this steps .. but still no success..

export DISK=/dev/sda sudo dd if=/dev/zero of=${DISK} bs=1M count=16

sudo sfdisk --in-order --Linux --unit M ${DISK} <<-EOF 1,48,0xE,* ,,,- EOF

sudo mkfs.vfat -F 16 ${DISK}1 -n boot sudo mkfs.ext4 ${DISK}2 -L rootfs

RobertCNelson commented 10 years ago

Did you install the Bootloader? Keep reading the wiki.

ghost commented 10 years ago

Thank you sir for quick reply. Now its work.. Once again thanks for your kind support. ..

wasyu55 commented 10 years ago

Thank you very much! I am Kaz from Japan.

I want to build and install 3.2.42-psp27 of BeagleBoneBlack to SD-CARD. build_kernel.sh and build_deb.sh was OK. And then, I installed u-boot to SD-CARD.

but I took a error when I executed ./tools/install_kernel.sh.


root@wave-VirtualBox:/usr/local/src/linux-dev# sudo ./tools/install_kernel.sh

I see... fdisk -l: Disk /dev/sda: 64.4 GB, 64424509440 bytes Disk /dev/sdb: 15.9 GB, 15931539456 bytes

lsblk: NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 60G 0 disk ├─sda1 8:1 0 59G 0 part / ├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 1022M 0 part [SWAP] sdb 8:16 1 14.9G 0 disk ├─sdb1 8:17 1 48M 0 part /media/boot └─sdb2 8:18 1 14.8G 0 part /media/rootfs

Are you 100% sure, on selecting /dev/sdb? y

Debug: Existing Partition on drive:

Disk /dev/sdb: 15.9 GB, 15931539456 bytes 64 heads, 32 sectors/track, 15193 cylinders, total 31116288 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0009049e

Device Boot Start End Blocks Id System /dev/sdb1 * 2048 100351 49152 e W95 FAT16 (LBA) /dev/sdb2 100352 31115263 15507456 83 Linux

Unmounting Partitions

Starting Partition Search

Trying: [/dev/sdb1] Partition: [/dev/sdb1] trying: [vfat], [ext4] Partition: [vfat] /usr/local/src/linux-dev Trying: [/dev/sdb2] Partition: [/dev/sdb2] trying: [vfat], [ext4] Partition: [extX] /usr/local/src/linux-dev

This script has finished... For verification, always test this media with your end device...


Shoud I install uEnv.txt based bootscript?

I am sorry. I need to help you about install debian kernel-3.2 to SD-CARD .

this is deploy list


-rw-r--r-- 1 root 1283818 6/29 6:29 3.2.42-psp27-firmware.tar.gz -rw-r--r-- 1 root 11822385 6/29 03:25 3.2.42-psp27-modules.tar.gz -rwxr-xr-x 1 root 2714680 6/29 03:24 3.2.42-psp27.zImage -rw-r--r-- 1 root 97968 6/29 03:24 config-3.2.42-psp27 -rw-r--r-- 1 root 239922 6/29 16:29 linux-firmware-image_1.0cross_armhf.deb -rw-r--r-- 1 root 7294526 6/29 16:29 linux-headers-3.2.42-psp27_1.0cross_armhf.deb -rw-r--r-- 1 root 14743916 6/29 16:29 linux-image-3.2.42-psp27_1.0cross_armhf.deb -rw-r--r-- 1 root 839192 6/29 16:29 linux-libc-dev_1.0cross_armhf.deb


RobertCNelson commented 10 years ago

Hi Kaz,

Sorry, i don't support running my v3.2.x-pspX kernel running on the BBB. Please see this wiki for v3.8 directions: http://eewiki.net/display/linuxonarm/BeagleBone+Black

Regards,