Hi all,
Now I run the KVM CPU and use the –script params to write the rcS script file 
to the image. The gem5 version is 20.0.0.3, the image I using is 
aarch-system-20170616/disks/linaro-minimal-aarch64.img, and I mount the image 
and modify the /usr/bin/auto-root-login :
/sbin/m5 --addr 0x10010000 readfile > /tmp/script
chmod 755 /home/root/script
if [ -s /tmp/script ]; then
     ./tmp/script
fi
exec /bin/login -f root
but the /tmp/script is null, that’s mean, the readfile command doesn’t work.
And if the /usr/bin/auto-root-login is this:
# /sbin/m5 --addr 0x10010000 readfile > /tmp/script
# chmod 755 /home/root/script
# if [ -s /tmp/script ]; then
#    ./tmp/script
# fi
exec /bin/login -f root
then I m5term to connect it, and run the command in the cmd:
/sbin/m5 --addr 0x10010000 readfile > /tmp/script
cat /tmp/script
the /tmp/script is written, that’s mean,the readfile command work success.
I don’t know why this is, is it because the login of root plays an import role?

_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to