Skip to content

Instantly share code, notes, and snippets.

View ptpt52's full-sized avatar
The only way out is through.

PTPT52 ptpt52

The only way out is through.
View GitHub Profile
@ptpt52
ptpt52 / b.sh
Last active April 16, 2023 00:52
用tmpfs编译openwrt
#!/bin/bash
#setup environment for tmpfs build for openwrt/x-wrt.
mkdir -p tmpfs_local/host tmpfs_local/hostpkg
mkdir tmpfs
#mount tmpfs size=24G (total 32G ram) for build_dir.
sudo mount -t tmpfs -o size=24G tmpfs tmpfs/
@ptpt52
ptpt52 / log 1
Created March 22, 2023 09:33
strongswan l2tp/ipsec psk test log
Wed Mar 22 17:30:03 2023 daemon.info : 08[ENC] parsed ID_PROT request 0 [ SA V V V V V V ]
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] received NAT-T (RFC 3947) vendor ID
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] received draft-ietf-ipsec-nat-t-ike-02 vendor ID
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] received draft-ietf-ipsec-nat-t-ike-02\n vendor ID
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] received draft-ietf-ipsec-nat-t-ike-00 vendor ID
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] received FRAGMENTATION vendor ID
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] received DPD vendor ID
Wed Mar 22 17:30:03 2023 daemon.info : 08[IKE] 192.168.16.190 is initiating a Main Mode IKE_SA
Wed Mar 22 17:30:03 2023 authpriv.info : 08[IKE] 192.168.16.190 is initiating a Main Mode IKE_SA
Wed Mar 22 17:30:03 2023 daemon.info : 08[CFG] selected proposal: IKE:AES_CBC_128/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024
root@OpenWrt:~# /etc/init.d/network reload
[ 121.287227] mc_detach: disabled snooping on br-lan.
Command failed: Not found
Default Service Class Count: 8
Custom Service Class Count: 1
Command failed: Not found
Command failed: Not found
Command failed: Not found
qcawifi qcawificfg80211 disable radio wifi0
Disable ol_stats for Lithium platforms
Welcome to minicom 2.8
OPTIONS:
Port /dev/ttyUSB0, 17:13:45
Press CTRL-A Z for help on special keys
===================================================================
MT7621 stage1 code 10:33:55 (ASIC)
>> Got DRAM size 0MB
Retrying ...
>> Applying AC timing parameters (try 2)
Expected DRAM size: 512MB
>> Setting DDR/CPU PLL ...
Using 3PLL mode with External loopback
DDR/CPU clock will be set to 1200MHz/880MHz
Hit any key within 10s to stop dump activity...resetting ...
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1.1-00059
S - IMAGE_VARIANT_STRING=MAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002c1
B - 128 - PBL, Start
B - 1562 - bootable_media_detect_entry, Start
IPQ5018# reset
resetting ...
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.3.1.1-00042
S - IMAGE_VARIANT_STRING=MAABANAZA
S - OEM_IMAGE_VERSION_STRING=CRM
S - Boot Config, 0x000002c1
B - 127 - PBL, Start
starting pid 1017, tty '/dev/ttyS0': '/usr/bin/login.sh'
(none) login: ROM: Use nor flash.
ERR: Param type error
ERR: Param type error
R
U-Boot 2010.06-dirty (Dec 02 2020 - 10:12:00)
DRAM: 64 MiB
SF: Got idcode 20 70 18 20 70