RobertCNelson / netinstall

Network Install for a bunch of arm boards
https://rcn-ee.com
80 stars 19 forks source link

Debian installer - all disks not found #17

Open darkstar007 opened 10 years ago

darkstar007 commented 10 years ago

I'm trying to install debian on my beaglebone-black. I create a microSD card with:

./mk_mmc.sh --mmc /dev/sde --dtb am335x-boneblack --distro wheezy-armhf --firmware

The issue I have is that the internal 2GB 'disk' in the BBB is not found - so when I come to partition the disks I'm not given that as an option nor does it seem to be listed in /dev or /dev/disks/by-uuid. (I only get the 8GB microSD card listed as on option or existing in /dev)

Any thoughts? Or what stupid things am I doing!!

RobertCNelson commented 10 years ago

The internal eMMC is disabled by default for two reasons with the netinstall.

  1. The "debian-installer partitioner" dies a horrible death when scanning the eMMC and install completely locks up. (due to the default partition table setup)..
  2. If you were to dd the eMMC with /dev/zero, to bypass the partition issue, the netinstall isn't smart enough (yet) to correctly partition the eMMC behind the scenes such that it would be bootable.

So, you could "re-enable" the eMMC by commenting out: https://github.com/RobertCNelson/netinstall/blob/master/hwpack/am335x-boneblack.conf#L63 But issues 1&2 show above will still affect you.. btw: the 'eMMC override' is only used for the debian-installer phase: https://github.com/RobertCNelson/netinstall/blob/master/mk_mmc.sh#L437 Not the "final" boot script..

But since you end goal is just debian on the eMMC, I'd recommend:

  1. Run the install like normal on the microSD
  2. On first 'reboot' with debian on the microSD, dl and run this script:

wget https://raw.github.com/RobertCNelson/tools/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh chmod +x beaglebone-black-copy-microSD-to-eMMC.sh ./beaglebone-black-copy-microSD-to-eMMC.sh

  1. Remove power, remove microSD, re-apply power, watch debian boot off eMMC..

Regards,

(edit: obvious, remove power before microSD)

darkstar007 commented 10 years ago

Thanks very much for your detailed reply. I shall try this shortly (unfortunately tomorrow at the earliest).

darkstar007 commented 10 years ago

Sorry - it took much longer than I expected to find the time to do it. However, it worked great! Thanks.