Stuck on white screen after login - osx-lion

I have Hackintosh build by a friend back in 2012. I need some files from it now but I can not access it. I see white screen after I login with my infos. Mouse and keyboard works but I only see white screen. I get to see wallpaper background with login when I press Power button. But when I login only whites screen. Im using HDMI on dedicated GTX 670. I also tried DVI without luck - same white screen after login. I pull out GTX out and RAM memory. No any differences. I tried different options on boot. -v -s (-f i can not log with). Also tried GraphicsEnabler=On/Off. I just need some files from Drives and then I can wipe out the system. Can you help me and tell if you have experience to solve this problem?
Specs:
Darwin/x86 boot v5.0.132 - Chimera v1.8.0
16 GB RAM
Intel i7-2600 #3.40Ghz
NVIDIA GeForce GTX 560
Lion OSX

Take out your HDD/SSD drive from the hackintosh and connect it to any Mac with a USB to SATA adapter. (If you have another hackintosh, just plug the drive to the other PC).
Note that regular 3.5" hard disks require a powered USB to SATA adapter, because these drives are unable to power with a single USB port.

Related

RaspberryPi home NAS

I am looking for some solution to turn up my RPi3 to home NAS. I am running out of space in Google Photos so I would like to store my photos on my own drive. I was looking for some solution but I didn't found something good.
My idea:
On RPi is running some system with my own HDD drive
That system have some settings where I can sleep that drive - e.g. during night so it doesn't make sound
I can access that storage through webapp which is on localhost
(optional) Store there not only photos and videos but also some files
That system has some android app which could sync my photos&videos to that NAS
(question) Could I access NAS from outside my home? I have read that is some solution to just edit something in Wifi router to access it from outside but idk if it is safe and even possible.
Thank you for answers, this topic is not very familiar with me so I am asking.
You're probably looking for something like OpenMediaVault:
https://www.openmediavault.org
I've used this on pi boards previously, though I've subsequently focused more on NFS and GlusterFS-based solutions I've built myself. Here's a three-node GlusterFS cluster that shows a few of the options for storage - those same options can be used for OMV.
For the storage devices you can use a USB to SATA cable with an HD (spinning disk will require external power, SSD generally won't), or use various USB solutions, like those shown here - regular USB keys or USB-NVMe. Make sure you use pi4 boards, which have USB-3 (the early models only had USB-2)
Good walkthrough here

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2)) waiting for download

I am trying to run a simple hello world sketch using Visual Studio Code for ESP32. To upload and to see the response,
I typed "idf.py flash monitor" in terminal. It uploads successfully, but after upload, the messages said:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
I am using ESP32 development board. 38 pin board.
Here, I have attached the screen shot.
So far I have worked only in Arduino IDE. I am new to ESP-IDF. What is the problem here?
You just have to select exactly the chip to correctly set the boot address at https://micropython.org/download/esp32/
for example, for the ESP32 Vendor: Espressif, Features: BLE, WiFi1, is
0x1000, with the command
esptool.exe --chip esp32 --port COM4 --baud 460800 write_flash -z 0x1000 esp32-20190125-v1.10.bin
The boot rom detects the state of the gpio boot pin when it's powered up. That pin is connected to a button on development boards. If the button is pressed while powering up, software reset will go to download mode rather than booting from the flash.
So the solution is to not press the button while powering up the board. In some cases maybe the button state is incorrectly detected, so just repower the board in that case.
press the boot button and then click reset button.
it worked out for me

Bare metal Raspberry Pi 2: Generating an SD card image for QEMU emulation

I've recently been getting into bare metal development for the Raspberry Pi 2, and having some success. Admittedly I've hesitated to buy an actual physical device until I feel I can do something useful with it, for the time being I've been emulating the device using qemu 2.11.0.
So far I've developed multicore capabilities for my kernel, as well as simple Serial I/O, but I feel I'd like to get much further before working with a physical device.
My issue right now is that I'm trying to learn how to place my kernel onto an SD card image and boot qemu-system-arm from that SD card image, so I can properly emulate a kernel loaded from the raspberry pi 2 bootloader.
I've gotten as far as grabbing the SD card contents from https://github.com/raspberrypi/firmware ... aster/boot, and using the following script to create the image and load my kernel into it. I've seen that people have figured out how to load Raspbian from an emulated SD card, so I figure I can do the same.
#!/bin/bash
OUTPUT_IMG=os.img
OUTPUT_IMG_SIZE=40
TEMP_MOUNT_DIR="$(mktemp -d)"
# the SD card boot partition contents are in this folder...
OUTPUT_IMG_CONTENTS_DIR="./sd"
OS_DIR="${HOME}/os"
OS_BINARY="${OS_DIR}/kernel.bin"
dd if=/dev/null of=${OUTPUT_IMG} bs=1M seek=${OUTPUT_IMG_SIZE}
mkfs.fat -F 32 ${OUTPUT_IMG}
sudo mount -t vfat -o loop ${OUTPUT_IMG} ${TEMP_MOUNT_DIR}
make -C ${OS_DIR} clean
make -C ${OS_DIR}
sudo cp -r ${OUTPUT_IMG_CONTENTS_DIR} ${TEMP_MOUNT_DIR}
sudo cp ${OS_BINARY} "${TEMP_MOUNT_DIR}/kernel.img"
The only issue is that qemu doesn't seem to boot from this image using the following command:
qemu-system-arm -machine raspi2 -serial file:serial.log -sd ./dev/os.img
I've tried a few different combinations, but to no avail.
I can see from hooking GDB that the kernel is simply not booting from this card image. Loading the kernel directly into qemu with the -kernel argument works otherwise perfectly.
I was wondering if anyone here had any insight on how to accomplish this!
Any help here would be greatly appreciated!
Your command won't work because you haven't passed QEMU either a guest BIOS or a guest kernel to run. The QEMU arm boards aren't like the x86 PC machine, which always automatically runs a guest BIOS image. If you want to run a BIOS (probably UEFI?) you need to find a suitable BIOS blob and pass it to QEMU with the -bios argument. Then QEMU will run the BIOS code, which will hopefully include SD card drivers to load the kernel and so on off the SD card.
Just using -kernel is much simpler...
After doing a bit of reading and searching online, as well as a bit of help from other contributors such as Peter Maydell with his answer above, I think I've answered my own question. Unless I'm mistaken qemu-system-arm does not fully emulate the Raspberry Pi boot process, and instead just loads the kernel specified with the -kernel argument by loading the binary into the guest system's memory and jumping to the entry point. It doesn't look like any additional hardware bootloading is emualted for -M raspi2 unfortunately.
Can ARM qemu system emulator boot from card image without kernel param?
This question is similar and contains some more useful details on this issue, relating to qemu-system-arm as a whole..

how to start a process under kernel debugging on windows?

I have a hard drive was crypted by TryeCrypt,a custom edtion ,self input password,and i have found this 40-bytes password via MBR debugging, but can't mount it using standard version 7.1a.
what i want is get some files from this hard drive,good news is,this hard drive is bootable and it is a windows xp sp2,but a fullscreen app was auto startup and any input(keyboard,mouse etc.) was blocked,therefore,the only way to touch it is debugging it with vmware gdb stub.
The ida's remote dbg debugger is working very well, now I touch the guest's memory, edit it's codes, set breakpoints and the symbols was loaded.
so the question is,how can I start a process via patching the kernel?
What I thinking is,build a winddk project , implement a driver to do this with user APC, and then disassemble it to get it's assembler code ,and then patch it into guest via ida.
Any idea? thanks.

Is it possible to boot the Raspberry Pi in Secure Mode?

I am currently developing a small OS on my Raspberry Pi, that I install by replacing the kernel.img file on the /boot partition of my SD card. By the time my code is run, the CPU is already in Normal Mode, so I can't have access to the Secure world / Trustzone area.
Is it possible to modify the boot process of the Raspberry to be able to start executing my code in Secure mode ?
Best,
V.
In fact you don't have to do anything but stop being stupid like me.
As explained here:
https://raspberrypi.stackexchange.com/questions/14953/is-it-possible-to-boot-the-raspberry-pi-in-secure-mode
When the NS bit of the SCR register is 0, it means that you are in Secure Mode, which is the case at boot on my Raspberry. I had the meaning of this bit backwards, sorry !