User Tools

Site Tools


debug_port

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
debug_port [2025/05/04 18:36] ounsatndebug_port [2025/05/04 18:54] (current) ounsatn
Line 36: Line 36:
 Let linux boot then you will see login prompt (force login:), waiting for you to login.  Let linux boot then you will see login prompt (force login:), waiting for you to login. 
  
 +If you have already a firwmare with ssh enabled, you can log like this on your device.
 +Otherwise if you dont have the login, you'll have to go into uboot console. 
 +
 +To do this and just after booting your device, there is a quick message allowing you to interrupt boot process. 
 +
 +
 +{{http://dnttalo.cluster029.hosting.ovh.net/Pictures/Uart/AKF_Uboot.jpg}}
 +
 +So to interrupt, press space or another key few times in your putty ( console apps ) 
 +Then you'll be on uboot prompt ( => ) .
 +
 +There you can type help to get list of all commands but be careful of what you do. 
 + 
 +To log into linux, as we don't have password, we are going to change it by mounting the rootfs partition and then we run passwd to change password. 
 +
 +  
 +
 +
 +<code>
 +# Under uboot, print current bootargs , UUID will be different so use the one you have. 
 +
 +$>printenv bootargs
 +$>bootargs=root=PARTUUID=1c5755ae-899e-475b-821b-636c4825550c rootwait ro console=ttyS2,115200 rfkill.default_state=0
 +
 +# We add "single init=/bin/sh'" to the end of the booting args with command below : 
 +$>setenv bootargs 'root=PARTUUID=1c5755ae-899e-475b-821b-636c4825550c rootwait ro console=ttyS2,115200 rfkill.default_state=0 single init=/bin/sh'
 +
 +# Print again to check everything is fine : 
 +$>printenv bootargs
 +
 +# Then boot 
 +$>boot
 +
 +#Remount rootfs / with read write rights : 
 +$>mount -rw -o remount /
 +
 +#Change password, type what you want 
 +$>passwd root
 +
 +#Reboot
 +$>reboot -f
 +</code>
 +
 +and Voila, you have a console access to your device. 
  
  
debug_port.1746376588.txt.gz · Last modified: 2025/05/04 18:36 by ounsatn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki