Bug 195744 - Unable to boot FreeBSD 10.1 memstick image; readin failed
Summary: Unable to boot FreeBSD 10.1 memstick image; readin failed
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.1-RELEASE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-06 14:23 UTC by ApplePuffs
Modified: 2023-01-24 15:08 UTC (History)
2 users (show)

See Also:


Attachments
Screen output when booting FreeBSD memstick image (105.13 KB, image/jpeg)
2014-12-06 14:23 UTC, ApplePuffs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description ApplePuffs 2014-12-06 14:23:30 UTC
Created attachment 150266 [details]
Screen output when booting FreeBSD memstick image

I can't boot FreeBSD memstick image from USB. The boot menu can display successfully but then fail to boot.

Tried to use other image including :
1. FreeBSD-10.1-RELEASE-amd64-memstick.img
2. FreeBSD-10.1-RELEASE-amd64-mini-memstick.img
3. FreeBSD-10.1-RELEASE-amd64-uefi-memstick.img
4. FreeBSD-10.1-RELEASE-amd64-uefi-mini-memstick.img

And tried to use other USB storage device including :
1. TDK 8GB Flash Drive
2. WD MyPassport 500GB HDD
3. USB card reader with 2GB NOKIA mini-SD card

Computer :
*** ASUS ChromeBox M004U ( CN60 ) ***
CPU : Celeron 2955U 1.4GHz
RAM : 8GB ( 4GB X2 ; 1.35V ; DDR3 ; Crucial )
SSD : Transcend 128 GB SATA III 6Gb/s MTS400

All memstick image has tested with md5 and sha256sum.

Tried to use DD on Linux and win32imagewriter on Windows to create the USB drive, but neither of them works.

Linux including Fedora/Ubuntu/OpenSUSE can boot and install successfully on this machine. Not sure why FreeBSD is unable to boot.

Screenshot attached for reference.


--------------- Output of the screen --------------------

/boot/kernel/kernel text=0xf8f898
readin failed

elf64_loadimage: read failed
can't load file '/boot/kernel/kernel': input/output error
Error while including /boot/menu.rc, in the line:
menu-display
-
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
/boot/kernel/kernel text=0xf8f898
readin failed
can't load 'kernel'

Type '?' for a list of commands, 'help' for more detailed help
OK

--------------------------------------------------------




------ Command used to copy image to usb drive ---------
umount /dev/sdc
umount /dev/sdc4
clear
dd if=FreeBSD-10.1-RELEASE-amd64-memstick.img of=/dev/sdc bs=64k
sync
reboot
--------------------------------------------------------




------------------ Sha256sum of image ------------------
7a071894f12454442cf24ee4f19c2d21e2a8a79d54c83541d2cb7b9f48497b3e
--------------------------------------------------------
Comment 1 ApplePuffs 2014-12-06 15:06:43 UTC
Seems that some OS need to config memory size to boot.

For Linux it is possible to do with "mem=XXXM" kernel parameter on boot. May i know what is the equivalent option on BSD? Thanks
Comment 2 Fernando Apesteguía freebsd_committer freebsd_triage 2023-01-24 15:08:19 UTC
This is not a supported version of FreeBSD anymore. About the memory question, that would be:

#hw.physmem="1G"                # Limit physical memory. See loader(8)
#vm.kmem_size=""                # Sets the size of kernel memory (bytes)