Open inaciose opened 6 years ago
Assuming you have confirmed that the serial cable you are using works. Do have the correct versions of the required files also on the SD card?
check my document at https://github.com/hzhou81/xinu-documents
Hello thank you for your replies.
My pi is a PI B (the one with 512M and just 2USB ports).
I did the compilation again, using the hzhou81 commands:
make -C compile clean make -C compile PLATFORM=arm-rpi COMPILER_ROOT=/usr/bin/arm-none-eabi-
Then I copy and rename "xinu.boot" to "kernel.img" to my sdcard root directory. The bootcode.bin and start.elf are already there, because I use the sdcard with a raspian distro (so threre is more files in there).
Boot the pi, and get garbled output as bellow:
▒+▒▒H▒V2▒/BX▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒x>▒▒#-▒▒
Did i need to only have the 3 files (bootcode.bin, start.elf and kernel.img) in that partition root? If i put a xv6 kernel as kernel.img its boot, in the same sdcard, with all the other files. (see log bellow)
.............. Boot starting...
Hello World from xv6 ARM memory is 0 1c000000 init: starting sh $ cat README xv6 is a re-implementation of Dennis Ritchie's and Ken Thompson's Unix Version 6 (v6). xv6 loosely follows the structure and style of v6, but is implemented for a modern x86-based multiprocessor using ANSI C.
Setting console input/output.Buy a USB to TTL module,follow method to connect to raspberry pi tty connect diagram
https://github.com/hzhou81/xinu-documents/blob/master/images/TTL.png
Connect using minicom。First running sudo apt install minicom to install "minicom" software module。Make USB to TTL module connect to your computer,as a /dev/ttyUSB1 device,Open "minicom" setting port to "/dev/ttyUSB1"、rate to "115200" and "Hardware Flow Control" to "No"
https://github.com/hzhou81/xinu-documents/blob/master/images/minicom.png
Starting debug. You will see through PL011 chip, XINU output TTL signals using GPIO,and finally output message on your computer screen minicom debug picture
I have USB to TTL module, its configured and working, I also use it to send binary files to run them without saving to sdcard, w/o any problems. If you look at my xv6 log above, its prove that the Serial Connection it is working ok. So no problems with Serial Connection, no problems to load a kernel.img (xv6 kernel, linux kernel, my bare metal experiments kernels) from sd card.
I use kermit, not minicom, but configured as you said, and works good.
Summary: my Raspberry Pi B its incompatible with xinu.
Can you give me some hints on how to change the code to init the uart as early as possible to check what is wrong?
The build successfuly complete. The xinu.boot is copied to kernel.img on boot partition on sdcard There is no output on serial console.