数码之家

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8472|回复: 88

[ARM] 先创对讲机 cctf std880A 进系统改参数方法

  [复制链接]
发表于 2024-8-29 00:32:22 | 显示全部楼层 |阅读模式

爱科技、爱创意、爱折腾、爱极致,我们都是技术控

您需要 登录 才可以下载或查看,没有账号?立即注册

x
本帖最后由 kelchdeng 于 2024-8-30 10:34 编辑

首先按之前帖子之前帖子40楼的线序连接

开机时按任意键,进入uboot
执行printenv
  1. U-Boot 2009.11 (May 29 2012 - 18:23:12)

  2. Hit any key to stop autoboot:  0
  3. U-Boot > printenv
  4. bootcmd=cp.l 0x60080000 0xc0700000 0x42f00;bootm 0xc0700000
  5. bootdelay=1
  6. baudrate=115200
  7. ethaddr=67:48:01:38:00:01
  8. bootfile="uImage"
  9. bootargs=mem=48M console=ttyS0,115200n8 root=/dev/mtdblock2 rootfstype=jffs2 rw ip=off
  10. stdin=serial
  11. stdout=serial
  12. stderr=serial
  13. ver=U-Boot 2009.11 (May 29 2012 - 18:23:12)

  14. Environment size: 304/131068 bytes
复制代码



可以看到bootargs的参数,默认开机不会直接进入shell。是直接进入系统。使用editenv在bootargs加上init=/bin/sh
再输入boot命令,进入系统。
  1. U-Boot > editenv bootargs
  2. edit: mem=48M console=ttyS0,115200n8 root=/dev/mtdblock2 rootfstype=jffs2 rw ip=off init=/bin/sh
复制代码
  1.   Loading Kernel Image ... OK
  2. OK

  3. Starting kernel ...

  4. Linux version 2.6.33-rc4 (root@erjie-desktop) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #400 PREEMPT Mon May 12 16:58:27 CST 2014
  5. CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
  6. CPU: VIVT data cache, VIVT instruction cache
  7. Machine: DaVinci DA850/OMAP-L138/AM18xx EVM
  8. Memory policy: ECC disabled, Data cache writeback
  9. DaVinci da850/omap-l138/am18xx variant 0x1
  10. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 12192
  11. PID hash table entries: 256 (order: -2, 1024 bytes)
  12. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  13. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  14. Memory: 48MB = 48MB total
  15. Memory: 46256KB available (2164K code, 152K data, 80K init, 0K highmem)
  16. SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  17. Hierarchical RCU implementation.
  18. NR_IRQS:245
  19. Console: colour dummy device 80x30
  20. Calibrating delay loop... 153.19 BogoMIPS (lpj=765952)
  21. Mount-cache hash table entries: 512
  22. CPU: Testing write buffer coherency: ok
  23. DaVinci: 144 gpio irqs
  24. NET: Registered protocol family 16
  25. bio: create slab <bio-0> at 0
  26. Switching to clocksource timer0_1
  27. NET: Registered protocol family 1
  28. JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
  29. msgmni has been set to 90
  30. io scheduler noop registered (default)
  31. da8xx_lcdc da8xx_lcdc.0: GLCD: Found Tianma_TM020GDZ44 panel
  32. serial8250.0: ttyS0 at MMIO 0x1d0c000 (irq = 53) is a AR7
  33. console [ttyS0] enabled
  34. serial8250.0: ttyS1 at MMIO 0x1d0d000 (irq = 61) is a AR7
  35. brd: module loaded
  36. impA7:probing 0x00800000 at 0x00000000
  37. impA7:probing 0x00800000 at 0x10000000
  38. Amd/Fujitsu Extended Query Table at 0x0040
  39. number of CFI chips: 1
  40. omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
  41. watchdog watchdog: heartbeat 60 sec
  42. omap_rtc omap_rtc: setting system clock to 2000-01-01 00:24:22 UTC (946686262)
  43. VFS: Mounted root (jffs2 filesystem) on device 31:2.
  44. Freeing init memory: 80K
  45. /bin/sh: can't access tty; job control turned off
  46. / #
复制代码
可以看到,我们已经进入系统。
从之前的正常启动打印来看系统的设置config是如下
  1. ========== Application started ==========
  2. ->channel_para.conf ok
  3. msl_number.conf ok
  4. misc.conf ok
  5. sys_info.conf ok
  6. davinci_misc_open
复制代码
使用find命令查找
  1. / # find -name channel_para.conf
  2. ./home/root/channel_para.conf
  3. / #
复制代码
然后进到/home/root
配置文件都在这个目录下。
channel_para.conf,本想改成430段来使用,结果发射无功率。
  1. ~ # vi channel_para.conf
  2. #..........16..
  3. Tm_Channel_Para_Begin
  4. #TSCC_Freq_No  Rx_Freq(KHz)  Tx_Freq  Pri_Flag
  5. 0      3661250      3561250      1
  6. Tm_Channel_Para_End

  7. Rm_Channel_Para_Begin
  8. #Rx_Freq(KHz)  Tx_Freq  Pri_Flag
  9. Rm_Channel_Para_End

  10. #................
  11. Dm_Channel_Para_Begin
  12. #CHAN_Alias  Freq(KHz)   Color_Code  slot
  13. ........1      4350000      4350000      3     1
  14. ........2      ***0000      ***0000      2     1
  15. ........3      ***0000      ***0000      1     1
  16. Dm_Channel_Para_End
  17. Am_Channel_Para_Begin
  18. #rxfreq    txfreq
  19. 4300000    4300000
  20. Am_Channel_Para_End

  21. DmZone_Setting_Begin
  22. #zone1  chan1  chan2  chan3  chan4  chan5  chan6  chan7  chan8  chan9  chan10  chan11  chan12  chan13  chan14  chan15  chan16
  23. ....1      ........1      ........2
  24. ....2      ........1      ........1
  25. DmZone_seting_End
  26. END
复制代码
系统sys_info.conf,希望有400段的机器作为参考,这样直接改感觉没用。
  1. ~ # vi sys_info.conf
  2. #SoftWare_Version:: format: *.*.*.*
  3. #HardWare_Version:: format: *.*.*.*
  4. #Device_Info
  5. Device_Info_Begin
  6. #DeviceType      DeviceName     Manufacturer    SoftWare_Version        HardWare_Version  ESN  FrequencyRange
  7. ......      ......      CCTF      May-29-2014      1.0.0.0      1010100      400-435      2
  8. Device_Info_End

  9. # 0: direct      1: repeat
  10. Work_Mode_Begin
  11. #Work_Mode    FreqPoint  ShowFreqPoint  u8SqulechLevel
  12. 7      4000000      1    1
  13. Work_Mode_End

  14. #..............
  15. #Tx Power(w)
  16. Tx_Power_Begin
  17. #u8TxPowDbm0  u8TxPowDbm1
  18. 50      100
  19. Tx_Power_End

  20. #............(0......1....)
  21. #PowerLevel
  22. PowerLevel_Begin
  23. 1
  24. PowerLevel_End

  25. # 0:normal       1..been remote shutted
  26. Remote_Control_Status_Begin
  27. #u8OpenLoopPCFlag       u8RemoteShut    u8VoiceService  u8DataService   u8Tx
  28. 1      0      0      0      0
  29. Remote_Control_Status_End

  30. System_Setting_Begin
  31. #backlight_timeout     u8Volume  keylock  Language  Timeformat  YMDformat  keylocktime  Alertvoice  Screenbrightness  GPSstatus
  32. 1      8      0      1      0      0      0      11      12      1
  33. System_Setting_End

  34. LAI_ROAM_Begin
  35. #ProvinceCode     CityCode  BSCode  Roamingmode  Fst(0.1KHz))  CHst
  36. 11      10      200      1      3610125      241
  37. LAI_ROAM_End

  38. PDT_Other_Ne_info_Begin
  39. #MDS_Number  PSTN_GATE_Number  PABX_GATE_Number  MPT_GATE_Number  Priority_Level  MS_Category  MS_level  CALLALL_Level
  40. 229376      16776896      16776897      122      0      0      0      1
  41. PDT_Other_Ne_info_End

  42. #........
  43. Text_Info_Begin
  44. ......(PDT)....................
  45. Text_Info_End

  46. Status_Info_Begin
  47. #Status         Alias
  48. 33      ......(PDT)....................^M
  49. Status_Info_End

  50. END
复制代码


本机id设置。ms_number.conf,这很重要,设置了个性id后,可以互发短信。和个呼
Indiv_Id_Begin
80020301
Indiv_Id_End
就是机器id

  1. ~ # vi ms_number.conf
  2. #MS individual  ID, Only One ID. range:0000001-9999999
  3. Indiv_Id_Begin
  4. 80020301
  5. Indiv_Id_End

  6. #MS Group  ID, Allow 16 IDs. range: 0000001-9999999
  7. Grp_Id_Begin
  8. 58420902      ......1^M
  9. 80097000      ......1^M
  10. 80097001      ......2^M
  11. Grp_Id_End

  12. BJGrp_Id_Begin
  13. BJGrp_Id_End

  14. JoinGrp_Id_Begin
  15. 80020911      ......2^M
  16. JoinGrp_Id_End

  17. #........
  18. Contact_Info_Begin
  19. 800123      1
  20. 80020912      912
  21. Contact_Info_End

  22. #........................PTT................
  23. #Call_Type: 0:.... 1:....
  24. Default_Call_Id_Begin
  25. #Call_Id        EmgCallId  EmgEnable
  26. 58420902      1075380332      584100      1    1
  27. Default_Call_Id_End

  28. END
复制代码
inittab的信息
  1. /etc # vi inittab
  2. # /etc/inittab: init(8) configuration.
  3. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

  4. # The default runlevel.
  5. id:5:initdefault:

  6. # Boot-time system configuration/initialization script.
  7. # This is run first except when booting in emergency (-b) mode.
  8. si::sysinit:/etc/init.d/rcS

  9. # What to do in single-user mode.
  10. ~~:S:wait:/sbin/sulogin

  11. # /etc/init.d executes the S and K scripts upon change
  12. # of runlevel.
  13. #
  14. # Runlevel 0 is halt.
  15. # Runlevel 1 is single-user.
  16. # Runlevels 2-5 are multi-user.
  17. # Runlevel 6 is reboot.

  18. l0:0:wait:/etc/init.d/rc 0
  19. l1:1:wait:/etc/init.d/rc 1
  20. l2:2:wait:/etc/init.d/rc 2
  21. l3:3:wait:/etc/init.d/rc 3
  22. l4:4:wait:/etc/init.d/rc 4
  23. #l5:5:wait:/etc/init.d/rc 5
  24. l6:6:wait:/etc/init.d/rc 6
  25. # Normally not reached, but fallthrough in case of emergency.
  26. z6:6:respawn:/sbin/sulogin
  27. # /sbin/getty invocations for the runlevels.
  28. #
  29. # The "id" field MUST be the same as the last
  30. # characters of the device (after "tty").
  31. #
  32. # Format:
  33. #  <id>:<runlevels>:<action>:<process>
  34. #

  35. #1:2345:respawn:/sbin/getty 38400 tty1

  36. S0:2345:respawn:/sbin/getty -n -l /usr/sbin/auto-login 115200 ttyS0
  37. #S1:2345:respawn:/sbin/getty 115200 ttyS1
  38. #S2:2345:respawn:/sbin/getty 115200 ttyS2
复制代码


改完后

~ # reboot -f

重启。配置生效。uboot的设置还原。
扣电池后,固件配置依旧生效。




补充内容 (2024-9-9 09:53):
备份固件和上传固件方法见16楼(待验证,为其他频段的机器)
上传和下载配置文件,解决新建频道中文显示。

补充内容 (2025-1-10 14:56):
880a和880s改400m方法见70楼和71楼。
期待大家更好的改机分享。

补充内容 (2025-2-19 14:47):
改善接收信号方法见79楼
功率测试见80楼

补充内容 (2026-6-9 16:52):
制式分析,建80楼。
最近用AI 写了个界面化的配置软件,还不错。

补充内容 (2026-8-20 17:05):
见89楼,快捷键总结,通过反编译分析得到

打赏

参与人数 3家元 +96 收起 理由
不长叶子的树 + 60
宁德 + 6 優秀文章
亲爱的混蛋 + 30

查看全部打赏

发表于 2024-8-29 10:54:07 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-8-29 11:08:41 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-8-29 15:01:25 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-8-29 15:07:21 来自手机浏览器 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-8-29 19:03:24 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-8-29 19:18:44 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-8-29 21:40:14 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-8-30 07:47:05 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-8-30 09:52:38 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-8-30 10:01:12 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 1 反对 0

使用道具 举报

发表于 2024-8-30 10:43:44 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-9-1 19:33:23 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-2 21:00:04 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-2 21:23:23 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-8 14:26:43 来自手机浏览器 | 显示全部楼层
游客请登录后查看回复内容

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-8 20:40:18 来自手机浏览器 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-8 20:41:46 来自手机浏览器 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

发表于 2024-9-9 20:02:34 | 显示全部楼层
游客请登录后查看回复内容

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-9-10 10:18:15 | 显示全部楼层
游客请登录后查看回复内容
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

APP|手机版|小黑屋|关于我们|联系我们|法律条款|数码之家-技术知识分享平台

闽公网安备35020502000485号

闽ICP备2021002735号-2

GMT+8, 2026-8-20 22:09 , Processed in 0.187200 second(s), 10 queries , Gzip On, Redis On.

Powered by Discuz!

© MyDigit.Net Since 2006

快速回复 返回顶部 返回列表