bao-project / bao-demos

A guide on how to build and use a set of Bao guest configurations for various platforms
Other
33 stars 37 forks source link

Jetson tx2, unable to load bao normally #25

Closed wusnga8dn closed 1 year ago

wusnga8dn commented 1 year ago

I'm trying to deploy bao to jetson tx2 recently. After I completed the operation in bao-demo, I found that when I restarted tx2 to load bao, I found that tx2 would directly enter the system that comes with tx2, and could not load bao normally. No information was printed on the screen, and I could not I get the u-boot prompt, what is the problem?

danielRep commented 1 year ago

Which guide did you followed? Automake or step-by-step?

On the automake you should notice that you'll be prompted on the console with these instructions to flash the tx2. Following the step-by-step guide you'll need to perform the same steps.

Be sure that you see this message at the end of the flash operation: *** The [secure-os] has been updated successfully. ***

wusnga8dn commented 1 year ago

Which guide did you followed? Automake or step-by-step?

On the automake you should notice that you'll be prompted on the console with these instructions to flash the tx2. Following the step-by-step guide you'll need to perform the same steps.

Be sure that you see this message at the end of the flash operation: *** The [secure-os] has been updated successfully. ***

Thank you very much for your reply, I use the step-by-step method to deploy bao. I'm pretty sure I've seen the message when flashing the firmware: The [secure-os] has been updated successfully. I just got the tx2 and haven't done any operations. The sd card is also new. I directly performed the Setup SD card operation. Do I need to perform any operations on the tx2 and the new sd card before performing these operations? For example, first insert the sd card into tx2 for mounting?

danielRep commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD), and NOT the J28 micro-USB port

wusnga8dn commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD).

Thank you very much for your reply, now I have successfully connected tx2 with the computer. This is the prompt information printed by the serial port: Tegra186 (P2771-0000-500) # fatload mmc 1 0xa0000000 bao.bin; go 0xa0000000 50012160 bytes read in 5406 ms (8.8 MiB/s)

Starting application at 0xA0000000  …

Bao Hypervisor BAO WARNING: smmuv2 does not support coherent page table walks Bao FreeRTOS guest Task1: 0 Task2: 0 Task1: 1 Task2: 1 Is this correct please? I have a problem connecting linux guest with ssh: I use ethernet cable to connect tx2 and computer (ubuntu virtual machine) and set static ip192.168.42.2 for wired connection. But it keeps failing to show on my Ubuntu virtual machine Wired Connected, when I press the rst key to restart the tx2 built-in system, the wired connection can be displayed normally, what is the problem?

This is the system that runs tx2 74bcb59d20724f19302a5c74f691003

This is running bao bc96c2cc532ad89ef8047b43223e151

wusnga8dn commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD), and NOT the J28 micro-USB port

How can I use ssh to connect to linux guest on tx2?

danielRep commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD), and NOT the J28 micro-USB port

How can I use ssh to connect to linux guest on tx2?

Can you share the config file that you are using on bao and describe the overall steps on how you are building ubuntu?

wusnga8dn commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD), and NOT the J28 micro-USB port

How can I use ssh to connect to linux guest on tx2?

Can you share the config file that you are using on bao and describe the overall steps on how you are building ubuntu?

I'm very sorry I don't quite understand what you mean, I didn't build ubuntu with modifying configuration files. I deployed Dual-guest Linux+FreeRTOS on bao, and the running platform is jetson tx2. When I deploy successfully, I plan to use the Ethernet cable to connect the built linux, but when I use the Ethernet cable to connect the tx2 and the Ubuntu virtual machine (my physical host), I find that the ubuntu virtual machine cannot detect the Ethernet cable, so it cannot use the Ethernet The network cable is connected to the linux guest, how to solve this problem?

danielRep commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD), and NOT the J28 micro-USB port

How can I use ssh to connect to linux guest on tx2?

Can you share the config file that you are using on bao and describe the overall steps on how you are building ubuntu?

I'm very sorry I don't quite understand what you mean, I didn't build ubuntu with modifying configuration files. I deployed Dual-guest Linux+FreeRTOS on bao, and the running platform is jetson tx2. When I deploy successfully, I plan to use the Ethernet cable to connect the built linux, but when I use the Ethernet cable to connect the tx2 and the Ubuntu virtual machine (my physical host), I find that the ubuntu virtual machine cannot detect the Ethernet cable, so it cannot use the Ethernet The network cable is connected to the linux guest, how to solve this problem?

So you're connecting the TX2 to your computer via the ethernet cable right? After, did you change your wired connection on you host ubuntu to this configuration? Address: 192.168.42.2 Netmask: 255.255.255.0

wusnga8dn commented 1 year ago

How are you connecting to the TX2? Don't forget you need to connect through a USB-to-TTL adapter as mentioned here. The serial output is through the J21 header, on pins 6(GND), 8(TXD), 10(RXD), and NOT the J28 micro-USB port

How can I use ssh to connect to linux guest on tx2?

Can you share the config file that you are using on bao and describe the overall steps on how you are building ubuntu?

I'm very sorry I don't quite understand what you mean, I didn't build ubuntu with modifying configuration files. I deployed Dual-guest Linux+FreeRTOS on bao, and the running platform is jetson tx2. When I deploy successfully, I plan to use the Ethernet cable to connect the built linux, but when I use the Ethernet cable to connect the tx2 and the Ubuntu virtual machine (my physical host), I find that the ubuntu virtual machine cannot detect the Ethernet cable, so it cannot use the Ethernet The network cable is connected to the linux guest, how to solve this problem?

So you're connecting the TX2 to your computer via the ethernet cable right? After, did you change your wired connection on you host ubuntu to this configuration? Address: 192.168.42.2 Netmask: 255.255.255.0

Yes I have set the ethernet line URL as: 192.168.42.2. Because I used the Raspberry Pi to deploy bao and successfully connected to Linux with an Ethernet cable, I saved the configuration of the Ethernet cable. But when I use tx2 to connect, I find that my Ubuntu host cannot detect the Ethernet cable

danielRep commented 1 year ago

That's really strange. I've tried again, and it works fine on my side. Try to install the JetPack from NVIDIA and see if you can connect by shh to the linux for tegra.

josecm commented 1 year ago

@wusnga8dn were you able to run the tx2 demo?

sandro2pinto commented 1 year ago

No feedback since 2 weeks.

Closing the issue.