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:52] ounsatndebug_port [2025/05/04 18:54] (current) ounsatn
Line 51: Line 51:
 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.  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. 
  
-Under uboot, print current bootargs, UUID will be different so use the one you have.   +   
-We add //"single init=/bin/sh'"// to the end of the booting args with command below : +
  
 <code> <code>
 +# Under uboot, print current bootargs , UUID will be different so use the one you have. 
 +
 $>printenv bootargs $>printenv bootargs
 $>bootargs=root=PARTUUID=1c5755ae-899e-475b-821b-636c4825550c rootwait ro console=ttyS2,115200 rfkill.default_state=0 $>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' $>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 $>boot
  
debug_port.1746377558.txt.gz · Last modified: 2025/05/04 18:52 by ounsatn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki