File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -471,33 +471,37 @@ ramdisk镜像制作
471471	mkdir temp 
472472	sudo tar jxvf stage3-arm64-arm64-20170223.tar.bz2 -C temp 
473473
474- #### Qemu for  chroot(gentoo  user only)  
474+ #### chroot via qemu- user-static in docker   
475475
476- 安装alien
476+ 使用qemu-user-static in docker来修改
477+ 
478+ 	docker run --rm --privileged multiarch/qemu-user-static --reset -p yes 
479+ 
480+ 到这里就可以执行chroot了
481+ 
482+ 	sudo chroot temp 
483+ 
484+ ~~ 安装alien(为了解压deb包)~~ 
477485
478486	emerge alien 
479487
480- 解压deb,得到qemu-user-static-2.0.0~ rc1+dfsg.tgz
488+ ~~ 解压deb,得到qemu-user-static-2.0.0~ rc1+dfsg.tgz~~ 
481489
482490	alien -t qemu-user-static_2.0.0~rc1+dfsg-0ubuntu3_amd64.deb 
483491
484- 解压qemu-user-static-2.0.0~ rc1+dfsg.tgz得到qemu-aarch64-static
492+ ~~ 解压qemu-user-static-2.0.0~ rc1+dfsg.tgz得到qemu-aarch64-static~~ 
485493
486494	sudo cp qemu-aarch64-static /usr/bin/qemu-aarch64 
487495	sudo cp /usr/bin/qemu-aarch64 temp/usb/bin/qemu-aarch64 
488496
489- 安装app-emulation/qemu-user为了获得脚本(用的是overlay安装)
497+ ~~ 安装app-emulation/qemu-user为了获得脚本(用的是overlay安装)~~ 
490498
491499	emerge app-emulation/qemu-user 
492500
493- 执行脚本(确保aarch64的执行正确, /usr/bin/qemu-arm如果存在会导致失败,删除即可)
501+ ~~ 执行脚本(确保aarch64的执行正确, /usr/bin/qemu-arm如果存在会导致失败,删除即可)~~ 
494502
495503	sudo /etc/init.d/qemu-binfmt start 
496504
497- 到这里就可以执行chroot了
498- 
499- 	sudo chroot temp 
500- 
501505#### 基本配置  
502506
503507拷贝DNS信息
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments