728x90

1. cannot get permission for fastboot.

< waiting for any device >


solution:


a. 관련 링크

https://github.com/96boards-hikey/tools-images-hikey960/ 


b. update fastboot

sudo apt install android-tools-adb android-tools-fastboot



c. add usb vendor to the driver(나의 경우엔 이걸로 해결)


$lsusb

Bus 003 Device 007: ID 2232:1045 Silicon Motion

Bus 003 Device 010: ID 18d1:d00d Google Inc.

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



$sudo vi /etc/udev/rules.d/51-android.rules

SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="d00d", MODE="0666", GROUP="plugdev"


$sudo service udev restart

728x90
728x90

./source build/envsetup.sh



select 1

Lunch menu... pick a combo:

     1. aosp_angler-userdebug



Download vendor images

https://developers.google.com/android/blobs-preview



chmod +x extract-qcom-angler.sh

chmod +x extract-huawei-angler.sh


./extract-qcom-angler.sh

./extract-huawei-angler.sh


==========================================

merge 3 fix

https://groups.google.com/forum/#!topic/android-building/JfgzeR_S9N4


prebuilts/tools:

git fetch https://android.googlesource.com/platform/prebuilts/tools refs/changes/02/682002/1 && git cherry-pick FETCH_HEAD

 

external/e2fsprogs/

git fetch https://android.googlesource.com/platform/external/e2fsprogs refs/changes/05/683305/1 && git cherry-pick FETCH_HEAD

 

external/f2fs-tools

git fetch https://android.googlesource.com/platform/external/f2fs-tools refs/changes/06/683306/1 && git cherry-pick FETCH_HEAD



make -j16




=================== Error======================

Error message: 

ninja: error: 'out/host/common/obj/JAVA_LIBRARIES/javapoet-prebuilt-jar_intermediates/classes.jar', needed by 'out/target/common/obj/APPS/Dialer_intermediates/classes-full-debug.jar', missing and no known rule to make it

 

Solution:

https://android-review.googlesource.com/c/platform/external/e2fsprogs/+/683305 

https://android-review.googlesource.com/c/platform/external/f2fs-tools/+/683306 

 

With those 3 patches (first one was 

https://android-review.googlesource.com/c/platform/prebuilts/tools/+/682002 

for anyone who missed that), android-p-preview-2 builds and mostly 

works (tried on Nexus 6P with latest blobs from 

https://developers.google.com/android/blobs-preview ). 

728x90
728x90

원문 : http://www.openssh.com/legacy.html


If the client and server are unable to agree on a mutual set of parameters then the connection will fail. OpenSSH (7.0 and greater) will produce an error message like this:


Unable to negotiate with legacyhost: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 



For the case of the above error message, OpenSSH can be configured to enable the diffie-hellman-group1-sha1 key exchange algorithm (or any other that is disabled by default) using the KexAlgorithms option - either on the command-line:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost 



or in the ~/.ssh/config file:


Host somehost.example.org 

KexAlgorithms +diffie-hellman-group1-sha1 


OpenSSH 7.0 이상에서는 해당 옵션이 기본으로 enable 되어 있지 않기 때문에

옵션을 넣어줘야 한다.

항상 넣기 귀찮으니 config를 만들어서 넣고 쓰도록 하자.

config파일이 없으면 그냥 생성하면 적용 됨.

728x90
728x90

Original link : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_MRG/1.2/html/Realtime_Reference_Guide/sect-Realtime_Reference_Guide-Using_library_calls_to_set_priority-sched_get_priority_min_and_sched_get_priority_max.html


#include <stdio.h>
#include <unistd.h>
#include <sched.h>

main()
{


  printf("Valid priority range for SCHED_OTHER: %d - %d\n",
  sched_get_priority_min(SCHED_OTHER),
  sched_get_priority_max(SCHED_OTHER));

  printf("Valid priority range for SCHED_FIFO: %d - %d\n",
  sched_get_priority_min(SCHED_FIFO),
  sched_get_priority_max(SCHED_FIFO));

  printf("Valid priority range for SCHED_RR: %d - %d\n",
  sched_get_priority_min(SCHED_RR),
  sched_get_priority_max(SCHED_RR));
}


Output

Valid priority range for SCHED_OTHER: 0 - 0

Valid priority range for SCHED_FIFO: 1 - 99

Valid priority range for SCHED_RR: 1 - 99



728x90

+ Recent posts