Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create rock64_install_to_emmc.sh #25

Closed
wants to merge 1 commit into from

Conversation

marcushh777
Copy link

port of pine64_install_to_emmc.sh; for the rock64;

supports xenial-mate|xenial-minimal|xenial-i3

port of pine64_install_to_emmc.sh;  for the rock64;

supports  xenial-mate|xenial-minimal|xenial-i3
Copy link
Contributor

@pfeerick pfeerick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested this? As it does not work on the 0.4.17 build, since for starters, the /sys/devices/soc.0/1c10000 is not present (and will probably never be present). Then, the other issue is that it will write to the wrong device. /dev/mmcblk0 is the eMMC, not /dev/mmcblk1

btw, to make the necessary changes, all you need to do is push more commits to the branch on your repo, it will automatically update this PR with any changes you make.

usage
fi

if [[ ! -d /sys/devices/soc.0/1c10000.sdmmc/mmc_host/mmc1 ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't exist on the rock64, needs removing.

echo ""
echo "Using $DOWNLOAD_URL..."
echo "Umounting..."
umount -f /dev/mmcblk1* || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong device. This is the microSD card

echo ""

echo "Downloading and writing to /dev/mmcblk1..."
curl -L -f "$DOWNLOAD_URL" | $ARCHIVER | dd bs=30M of=/dev/mmcblk1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong device - should be /dev/mmcblk0

exit 1
fi

if [[ ! -e /dev/mmcblk1 ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok, but perhaps identifying the actual boot medium is better? Perhaps using the same test used in the resize script? Just a thought.

https://github.com/ayufan-rock64/linux-build/blob/master/package/root/usr/local/sbin/resize_rootfs.sh#L8-L23

fi

case "$1" in
xenial-minimal|xenial-mate|xenial-i3)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why only these three? Why not also the other currently offered builds? i.e. armhf build, the stretch build, and the jessie-minimal and jessie-omv builds?

@ayufan
Copy link
Member

ayufan commented Sep 10, 2017

@marcushh777 Could you update these scripts?

@marcushh777
Copy link
Author

marcushh777 commented Sep 10, 2017 via email

@ayufan ayufan force-pushed the master branch 2 times, most recently from d8a280d to 6d754f8 Compare January 11, 2018 13:57
@ayufan ayufan force-pushed the master branch 8 times, most recently from a4b291f to 1d02721 Compare April 1, 2018 18:15
@ayufan ayufan force-pushed the master branch 11 times, most recently from 092d477 to ead4abd Compare July 8, 2018 11:45
@ayufan ayufan force-pushed the master branch 4 times, most recently from 2f24c70 to c555d8e Compare May 27, 2019 21:43
@ayufan ayufan closed this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants